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

antlrlist antlrlist at yahoo.com
Thu Jul 17 07:39:03 PDT 2003


Hmmm...

Can't you just use the unicode escape sequence of the quote char?

DOUBLE_QUOTE options { paraphrase = "\u0022";} : "\u0022";

Does this change anything?

Cheers,

Enrique

--- In antlr-interest at yahoogroups.com, Ric Klaren <klaren at c...> wrote:
> Hi,
> 
> Sorry this one got a bit snowed under. It affects Java codegeneration as
> well it seems on my quick inspection.
> 
> Problem is that antlr's parser and tokendefinition parser do not dequote
> the strings they store internally (these two even seem to follow
different
> behaviour !?). Which then blows up when they get quoted in the
> codegenerators for java/C++.
> 
> On Mon, Jul 07, 2003 at 04:04:31PM -0000, Lubos Vnuk wrote:
> > If I specify:
> > DOUBLE_QUOTE options { paraphrase = "\"";} : "\"";
> >
> > I suppose it should be just a single backslash.
> > How can I define a double qoute paraphrase?
> 
> Ugh this is bad every work around I could think off produced something
> different :/
> 
> Maybe Terence has an idea...
> 
> Cheers,
> 
> Ric
> --
>
-----+++++*****************************************************+++++++++-------
>     ---- Ric Klaren ----- j.klaren at u... ----- +31 53 4893722  ----
>
-----+++++*****************************************************+++++++++-------
>   "Good judgement comes from experience.
>      Experience comes from bad judgement." --- Unknown


 

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




More information about the antlr-interest mailing list