[antlr-interest] Newick tree grammar help: file has no rules
Norman Dunbar
Norman at dunbar-it.co.uk
Thu Nov 3 09:51:31 PDT 2011
On 03/11/11 16:46, Norman Dunbar wrote:
> Change "tree" to "xtree" and all appears well. I'm assuming that "tree"
> is some sort of reserved word somewhere in the system?
Although, having done this, Altrworks does complain about the tree and
subtree rules:
[16:49:06] warning(200): NewickGrammar.g:12:28:
Decision can match input such as "EOF" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
[16:49:06] error(201): NewickGrammar.g:12:28: The following alternatives
can never be matched: 2
Check out the syntax diagram for these two rules.
Cheers,
Norm.
Disclaimer: I'm not a compiler writer, nor do I play one on TV.
--
Norman Dunbar
Dunbar IT Consultants Ltd
Registered address:
Thorpe House
61 Richardshaw Lane
Pudsey
West Yorkshire
United Kingdom
LS28 7EL
Company Number: 05132767
More information about the antlr-interest
mailing list