[antlr-interest] error in antlrv3tree.g: rule ebnf
Jens Boeykens
jens.boeykens at gmail.com
Thu Jul 10 01:53:34 PDT 2008
Hello,
rule ebnf is missing two alternatives: ^(o='^' block) and ^(o='!' block).
These are defined in ebnf in ANTLRv3.g but nog 'caught' in ANTLRv3Tree.g
I've added them in my local version and now it works.
*ebnf
: ^(SYNPRED block) -> ebnf_synpred(synpred={$SYNPRED}, block={$block.st})
| ^(SYN_SEMPRED block) -> ebnf_synSempred(syn_sempred={$SYN_SEMPRED},
block={$block.st})
| ^(ebnfSuffix block) -> ebnf_ebnfSuffixblock (ebnfSuffix
={$ebnfSuffix.st}, block = {$block.st})
| ^(o='^' block) -> ebnf_treeblock(op={$o},block = {$block.st})
| ^(o='!' block) -> ebnf_treeblock(op={$o},block = {$block.st})
| block -> ebnf_block(block = {$block.st})
;*
Greetz,
Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080710/7e08d3f0/attachment-0001.html
More information about the antlr-interest
mailing list