At 03:51 27/09/2009, Thierry USO wrote:
>procedure_name
>: IDENTIFIER
>;
>
>IDENTIFIER
>: LETTER (LETTER|_|DIGIT)+
>;
>
>-----
>
>How can I get the value of procedure_name and print it (screen
or
>file) ? Adding {System.out.print($IDENTIFIER.text);} in the
>procedure_name rule does not work.
Define "does not work".
Also, it's difficult to try to solve problems (especially vague
ones) without a complete grammar. Please either make your full
grammar available or post a minimal but complete grammar that
reproduces the problem.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/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
-~----------~----~----~----~------~----~------~--~---