Am Tuesday 05 May 2009 15:38:29 schrieb Martijn Reuvers:
> Hello everyone,
>
> // This is what I had in mind, but how to skip the
> current subtree?
>
"skip the current subtree" means reading it but doing nothing?
then write grammar rules which walk that subtree and do nothing with it, maybe
like:
bool_function_content[Boolean value]
: {value != null && value.booleanValue()}? => function_content*
| {value != null && !value.booleanValue()}? =>
overread_function_content*
;
cheers,
Michael
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
-~----------~----~----~----~------~----~------~--~---