[antlr-interest] Return types on lexer rules do not seem to work.

Johannes Luber jaluber at gmx.de
Wed Jul 18 10:31:57 PDT 2007


Kay Roepke wrote:
> 
> On Jul 18, 2007, at 10:13 AM, Alex Shneyderman wrote:
> 
>> I run it with 3.0 final, so you guys might have fixed it ... ?
> 
> AFAIK, lexer rules have no return values. But I might be mistaken.
> 
> HTH,
> -k

Only tree and parser rules may include return values. The book states
this on page 86. But it should be possible to use scopes for this
purpose instead.

Best regards,
Johannes Luber


More information about the antlr-interest mailing list