[antlr-interest] Lexer token type problem
Sriram Durbha
cintyram at yahoo.com
Mon Nov 25 12:38:06 PST 2002
youre right,
i had made that change too , and got a funny error;
it works if i use a char or int, but fails if i use a string :))
thanks any way;
cheers
ram
--- jbb at acm.org wrote:
> 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/
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list