From b42d4b5940b28093d941c117ff376b556917c43e Mon Sep 17 00:00:00 2001 From: m8pple Date: Wed, 1 Feb 2017 11:59:02 +0000 Subject: Fix bug in updated string literal notes. Thanks to @MK2020. Closes #8 --- 1-lexer.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '1-lexer.md') 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\"" } ] ```` -- cgit