If you define a grammar with a double-quote " token and try to produce C output, the string it produces is """, rather than "\"", which confuses the C compiler. If you run the python script in the attached zip file it will produce the corresponding grammar C source (also attached), which reproduces the issue on lines 25 and 27.
quote_bug_grammar.zip