Skip to content

wrong double-quote token string in C output #16

@bernstei

Description

@bernstei

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions