aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--1-lexer.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/1-lexer.md b/1-lexer.md
index 8f91d71..34b6c8d 100644
--- a/1-lexer.md
+++ b/1-lexer.md
@@ -161,15 +161,14 @@ matter.
There is some [ambiguity](#2) over the string literals, which might
or might not include the quotes. _Both_ forms will be accepted as
-value, so this:
-Another session for a different lexer could be (preferred):
+value, so another session for a different lexer could be (preferred):
````
$ cat wibble.c
z="wibble"
$ cat wibble.c | bin/c_lexer
[ { "Class" : "Identifier", "Text": "z" },
{ "Class" : "Operator", "Text": "=" },
- { "Class" : "StringLiteral", "Text": "z" }
+ { "Class" : "StringLiteral", "Text": "wibble" }
]
````
or
@@ -178,7 +177,7 @@ or
$ cat wibble.c | bin/c_lexer
[ { "Class" : "Identifier", "Text": "z" },
{ "Class" : "Operator", "Text": "=" },
- { "Class" : "StringLiteral", "Text": "\"z\"" }
+ { "Class" : "StringLiteral", "Text": "\"wibble\"" }
]
````