Add a readme to another fixture grammar

This commit is contained in:
Max Brunsfeld 2017-03-09 14:37:55 -08:00 committed by GitHub
parent 53f72f0eca
commit 796fc26c74

View 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.