Add a readme to another fixture grammar
This commit is contained in:
parent
53f72f0eca
commit
796fc26c74
1 changed files with 1 additions and 0 deletions
1
spec/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/readme.md
vendored
Normal file
1
spec/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/readme.md
vendored
Normal file
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue