[antlr-interest] problem with TreeParser grammar -> <AST>: unexpected AST node: 'abc'

Terence Parr parrt at cs.usfca.edu
Tue Dec 20 12:58:54 PST 2005


On Dec 20, 2005, at 12:19 AM, <Oliver.Kowalke at infineon.com>  
<Oliver.Kowalke at infineon.com> wrote:

> Hello,
> I don't know why the tree parser grammar doesn't work if I try to  
> parse
> " otype in ('abc','efg') ":
>
> <AST>: unexpected AST node: 'abc'
>
> Could please help me?

That seems weird.  Have you printed out the tree to verify you are  
tree parsing what you think you are?  Is there a token type mismatch  
somehow?

Ter



More information about the antlr-interest mailing list