~cricket/ckt

2a23bb8362e686295d719c6d49d615b36e51cbc2 — c piapiac 2 years ago 324bfbb
remove single quoted strings

* allows apostrophes and stuff without quoting strings
* simplifies tokenization & parsing just a little
1 files changed, 4 insertions(+), 6 deletions(-)

M SPEC
M SPEC => SPEC +4 -6
@@ 11,7 11,6 @@ escape sequences = [
    \r = carriage return (0x0D)
    \t = tab (0x09)
    \" = double quote (0x22)
    \' = single quote (0x27)
    \\ = backslash (0x5C)
    \xNN = hexadecimal 8-bit value
    \uNNNN = hexadecimal unicode code point (UTF-8 encoded) (4 digits)


@@ 106,11 105,10 @@ value
this is a bare unquoted string
this string includes \n which is not interpreted as a newline

# Quoted strings are surrounded by " or ', and are escaped (see escape sequences under DEFINITIONS)
'this is a quoted string'
"this is also a quoted string"
# Quoted strings are surrounded by ", and are escaped (see escape sequences under DEFINITIONS)
"this is a quoted string"

# This are useful if you need a string that includes any of [ ] = , ; | # " '
# This are useful if you need a string that includes any of [ ] = , ; | # "
tag = "#Epic"

# Or if you need escaped characters


@@ 127,7 125,7 @@ singleline multiline string =
    |This string only spans \
    |a single line.

singleine unquoted string = This string only spans a single line.
singleline unquoted string = This string only spans a single line.

# Escape hatches themselves can be escaped.
escaped escape hatches =