[antlr-interest] ANTLR3 grammar problem
Terence Parr
parrt at cs.usfca.edu
Sat Sep 10 12:32:09 PDT 2005
On Aug 6, 2005, at 4:45 AM, Marco Ladermann wrote:
> While playing around with ANTLR3 I found the following problem in a
> lexer rule
> (combined grammar PGNParser.g). From the definition of a comment in
> the PGN
> (Portable Game Notation) for chess games:
>
> COMMENT_STRING:
> '{'
> ( ~( '}' ) )*
> '}'
> ;
>
> this is generated into the PGNParser.lexer.g file (line 24)
>
> COMMENT_STRING : '{' (~ )* '}' ;
I have fixed this; it will appear in next v3 release :)
Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
More information about the antlr-interest
mailing list