[antlr-interest] How do I set token type in ANTLR 3.1b1?

Vaclav Barta vbar at comp.cz
Mon Jun 9 21:45:25 PDT 2008


Johannes Luber wrote:
>> Gavin Lambert wrote:
>>> Because that's what you wrote.  Unless you use the $ prefix (which 
>>> you're supposed to use whenever you refer to any ANTLR-provided 
>>> parameters, fields, etc) then ANTLR will leave your code alone.  It 
>>> assumes you know what you're doing.
>> Well, the assumption is clearly incorrect in my case - thanks very much.
> So how many of the errors are your fault and how many are ANTLR's?
> I got lost here.
Handling $text is my error (the simple one :-) ) while handling $type 
remains open - anybody's welcome to convince me it's mine as well, but I 
don't see it...

     Bye
         Vasek
-- 
http://www.mangrove.cz/
Open Source integration



More information about the antlr-interest mailing list