[antlr-interest] Newbie - How to extract values of tokens?

anand mohan shrivastava anandmohans at lycos.com
Thu Oct 13 11:38:14 PDT 2005


Hi,


I'm a newbie for ANTLR. I need to parse an addres-string and break that into sub-components. After looking into some examples I was able to successfully write the grammar.

ANTLR generated the corresponding Parser, Lexer and TokenTypes classes and I was able to display the breakup in form of swing based tree format.

Now, I need to pass the values of those sub-components to my main java application but finding myself helpless here. 

Can't understand how to extract values of those "variables"! I would appreciate if someone could help me out (or at least tell me about some link that explains how to achieve this)...


Thanks in advance,
Anand

-- 
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10



More information about the antlr-interest mailing list