[antlr-interest] Antlr 3 Bug?

Terence Parr parrt at cs.usfca.edu
Wed Nov 1 09:06:51 PST 2006


yeah, EOF doesn't terminate a // comment in my grammar, I'm afraid.  
partially, this is because UNIX abhors a file without an end of line  
on the and and generally forces one. ;)

Ter
On Nov 1, 2006, at 12:43 AM, Hill, Robert wrote:

> A single line comment ('//')on the last line of a grammar gives the  
> following internal error with the last character being unexpected,  
> regardless of what that character is.
>
> internal error: D:\ActiveProjects\IdeaProjects\Jtest1\src 
> \Backend.g : D:\ActiveProjects\IdeaProjects\Jtest1\src\Backend.g: 
> 369:125: unexpected char: '.'
>
> The multiline comment doesn't give the same internal error.
> (I know its not serious but I thought I'd post it in case there's  
> some other related bugs )
>
> cheers
>
> Rob
>
> Robert Hill
> Information Engineer
> E       UKIMEA DWP ACU, Hallamshire Business Park, 100 Napier St,  
> Sheffield. S11 8HD
> email:  rhill03 at eds.com
> Office: +44 114 291 1928
> Mobile: +44 7903 185 516
>
>



More information about the antlr-interest mailing list