Hi Gavin

but the class cannot be applied by the outside source, right? then how can
get the value out of the program? i mean i want to call the function in the
main function, yet it is generated in the internal class of the parser
class, right? then how can i get this value in the main fuction?

thank you

Su
2008/11/23 Gavin Lambert <[EMAIL PROTECTED]>

> 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.)
>
>


-- 
Su Zhang
PHD Candidate
Computer Information and Science
Kansas State University

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to