[antlr-interest] how to quote things?

Benjamin Shropshire shro8822 at vandals.uidaho.edu
Tue Feb 26 22:30:05 PST 2008


Jim Idle wrote:
> C# requires two quotes per embedded quote and you probably need to 
> escape them from ANTLR, which gives:
>
> ["\"\"\"\""]
>
> Or something like that (in case of typos I can't see for looking),
>
> Jim
No joy, antler puts this into the .cs file:

                                concept(", \", \", \", \", ");


that's an exact quote. Thankfully, for the time being the difference 
between "\"\"" and "bob" is not a problem :)


More information about the antlr-interest mailing list