[antlr-interest] Two questions about antlr3 syntax

Terence Parr parrt at cs.usfca.edu
Thu Oct 27 13:32:58 PDT 2005


On Oct 27, 2005, at 12:59 PM, Oliver Zeigermann wrote:
>>     LINE_DIRECTIVE : a="#line" WS line=NUMBER WS (filename=STRING)?
>>         {
>>             $setType(Token.SKIP);
>>             setLine(Integer.parseInt(line.getText())-1);
>>             if(filename!=null)
>>             {
>>                 currentFilename = filename.getText();
>>                 setFilename(currentFilename);
>>             }
>>         }
>>         ;
>>
>
> I suppose this is a lexer rule, isn't it? If so, there is no way to
> make this work in ANTLR3ea5, but this will work in the next release.

I hope to have the next antlr v3 out next week...

Ter


More information about the antlr-interest mailing list