[antlr-interest] Does ANTLR *need* ASTNull?

micheal_jor open.zone at virgin.net
Thu Mar 20 19:12:13 PST 2003


Hi,

I have run into an issue with ASTNULL and hetero-ASTs using Java as 
the target language (IIRC C# doesn't have ASTNULL and it isn't an 
issue with C++).

Specifically, there are a few situations where ASTNULL is assigned as 
the value of a vriable then, an attempt is made to cast that variable 
whose value is ASTNULL to an hetero-AST class ==> classCastException! 

Why does ANTLR-Java need ASTNULL?. 
Why isn't just "null" simply used as in ANTLR-C#?

Michael



 

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



More information about the antlr-interest mailing list