Hmmm. Just checked that with the latest snapshot of ANTLR 3.2, but it
really does not work, but it should, right? Why can "." not be a tree
root?
Grammar:
treee
: ^(. treee* )
;
Command line:
ANTLR Parser Generator Version 3.2-2008-10-21
error(166): OCLWalker.g:27:6: Wildcard invalid as root; wildcard can
itself be a tree
Can you fix that?
Cheers Oliver
2008/11/26 Terence Parr <[EMAIL PROTECTED]>:
> Hi gang, I've recently fixed how this wildcard thing works in tree
> grammars.
>
> October 21, 2008
> * Made . in tree grammar look like ^(. .*) to analysis, though ^(. foo)
> is illegal (can't have . at root). Wildcard is subtree or node.
> Fixed bugs:
> http://www.antlr.org:8888/browse/ANTLR-248
> http://www.antlr.org:8888/browse/ANTLR-344
>
> Not sure why ^(. foo) is illegal...hmm...weird.
> Ter
>
> List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
>
>
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
-~----------~----~----~----~------~----~------~--~---