[antlr-interest] Re: <AST>:0:0: expecting IDENT, found '<ASTNULL>'

micheal_jor open.zone at virgin.net
Sun Nov 28 01:38:12 PST 2004



--- In antlr-interest at yahoogroups.com, Muhammad Masoom Alam
<doublemalam at y...> wrote:
> Dear all
> 
> during tree evaluation , we often this exception/error
> 
> <AST>:0:0: expecting IDENT, found '<ASTNULL>'
> or
> 
> <AST>: expecting IDENT, found '<empty tree>'
> 
> is there is any specific reason for these errors ,

Most likely reason is that your tree grammar doesn't match the tree
structure encountered at runtime.

You can check for this by printing the AST structure (try the ASTFrame
if implementing in Java/C#) for the input. This can then be compared
to the tree grammar. 

[** For C# only, the ToTree() methods will print the tree as a text
diagram.]

Cheers,

Micheal
ANTLR/C#






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list