[antlr-interest] Modifying token text - is it possible?

shmuel siegel antlr at shmuelhome.mine.nu
Wed Nov 21 01:50:36 PST 2007


Steve Bennett wrote:
> Is there really no documentation on this stuff at all? I seem to end
> up relentlessly text-searching the book pdf for constructs like
> "emit(" and hope to hit a fragment of code that looks like what I'm
> trying to do. I would dearly love a list of constructs that ANTLR
> recognises, that would answer questions like "In a Lexer rule, you can
> do X. In a Parser rule you cannot do X but you can do Y" etc etc. It's
> very frustrating atm :(
>
> Steve
>   
This wiki page might help with a sample of how to use emit. 
http://www.antlr.org/wiki/pages/viewpage.action?pageId=3604497



More information about the antlr-interest mailing list