[antlr-interest] Re: Paraphrase option and C++ generation

Ric Klaren klaren at cs.utwente.nl
Thu Jul 17 07:48:42 PDT 2003


On Thu, Jul 17, 2003 at 02:39:03PM -0000, antlrlist wrote:
> Can't you just use the unicode escape sequence of the quote char?
> 
> DOUBLE_QUOTE options { paraphrase = "\u0022";} : "\u0022";

The '\' only will get quoted so you'd effectively only end up with a
paraphrase of \u0022 for the double quote. Antlr stores the paraphrase text
as is and then quotes it again on codegen. This needs a patch in how antlr
deals with this stuff.

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
     "Evil will always triumph, because Good is dumb." ---  Spaceballs


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list