From 796fc26c7487c3f3610136a1588953ecba7e82ad Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 9 Mar 2017 14:37:55 -0800 Subject: [PATCH] Add a readme to another fixture grammar --- .../test_grammars/anonymous_tokens_with_escaped_chars/readme.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 spec/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/readme.md diff --git a/spec/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/readme.md b/spec/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/readme.md new file mode 100644 index 00000000..96233364 --- /dev/null +++ b/spec/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/readme.md @@ -0,0 +1 @@ +Every token in a grammar is given a name in the generated parser. Anonymous tokens (tokens specified directly in the body of some larger rule) are named according their content. So when tokens contains characters that aren't valid in a C string literal, we need to escape those characters. This grammar tests that this escaping works. The test is basically that the generated parser compiles succesfully.