[antlr-interest] how can i get a return string from the parser

Su Zhang westlifezs at gmail.com
Sun Nov 23 09:52:05 PST 2008


Hi all,

My program needs a string from Parser, but there is not any function
provided in the public class parser, how can I get the string outside? I
mean I want to get the string generated from the rules of antlr(functions in
parser), and I have written  "returns[String s]" to indicate that I need the
value, but how can i get the String? does anybody familiar with this kind of
problem?

Thank you!

-- 
Su Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081123/bd29d63e/attachment.html 


More information about the antlr-interest mailing list