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.