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

Randall R Schulz rschulz at sonic.net
Wed Jul 18 11:34:04 PDT 2007


On Wednesday 18 July 2007 10:31, Johannes Luber wrote:
> ...
>
> 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.

How is that? Lexical analysis is all done before parsing begins.


> Best regards,
> Johannes Luber


Randall Schulz


More information about the antlr-interest mailing list