[antlr-interest] Newbie conundrums

Jan-Willem van den Broek monstermanual at gmail.com
Wed Aug 22 12:22:43 PDT 2007


>
> In this case, you probably want to handle everything in the lexer.
> Replace "line" with "LINE" and you will find that ANTLR does what you
> want it to do.
>

Hmm, I hadn't thought of that. It does process the input like a charm.
Thanks for the idea!

But what would I do if I wanted those three individual values at a
higher level? Now they're just a single token. As a workaround I tried
putting them in return values, but that doesn't seem to be supported
in the lexer...

JW


More information about the antlr-interest mailing list