[antlr-interest] Modifying token text - is it possible?
Steve Bennett
stevagewp at gmail.com
Tue Nov 20 15:10:02 PST 2007
On 11/21/07, Terence Parr <parrt at cs.usfca.edu> wrote:
> Hi. that is v2 stuff so beware. Try setText, which modifies the text
> member of the lexer.
So what about this syntax:
> > FOO: '<'! ... ; // '<' does not become part of the token
Is there a v3 equivalent? What's the correct way to get behaviour like:
HTML_TAG: '<'! LETTER+ '>'!;
Steve
More information about the antlr-interest
mailing list