At 06:52 24/11/2008, Su Zhang wrote: >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?
It's a return value. That means it's actually returned from the parser method. (Depending on your grammar, it might be returned directly or inside a structure. Examine the generated code.) List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
