2008/11/27 Gavin Lambert <[EMAIL PROTECTED]>: > In other words (in vaguely ANTLR-like syntax): > > wildtree : ANYNODE | ^(ANYNODE wildtree*) ; > > . => wild > ^(.) => ANYNODE > ^(. FOO) => ^(ANYNODE FOO) > ^(FOO .) => ^(FOO wildtree) > ^(FOO . .) => ^(FOO wildtree wildtree) > ^(FOO .+) => ^(FOO wildtree+) > ^(FOO .*) => ^(FOO wildtree*)
Using these semantics my original rule tree : ^(. tree* ) ; would match any tree even if subtrees are single nodes only, right? Oliver 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 -~----------~----~----~----~------~----~------~--~---
