[antlr-interest] Lexer token type problem
jbb at acm.org
jbb at acm.org
Mon Nov 25 11:55:07 PST 2002
I am not an expert in Antlr's meta-language, but it seems that the
returns keyword must go outside the []'s.
So I think do this:
file returns [string s] {s = "something" ; }: ( ( (design_unit )+ ) ? )
EOF ;
instead of this:
file [returns string s] {s = "something" ; }: ( ( (design_unit )+ ) ? )
EOF ;
Hope this helps....
--
-jbb
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list