[antlr-interest] token ' leads to OutOfMemory Exceptions

Anders Hessellund anders.hessellund at gmail.com
Mon Mar 23 01:54:10 PDT 2009


Hi,

I've experienced a strange thing in my grammar. I need a token for the
special character '

If I specify it like this:

PLING
    :    '\''
    ;

I get an OutOfMemoryException during parsing.

But if I specify it like this

PLING
    :    '\u0027'
    ;

Everything works fine.

Is this a bug or a feature?

Cheers,

Anders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090323/e1b013fa/attachment.html 


More information about the antlr-interest mailing list