[metaas-dev] ElseIf

Matthew J Tretter matthew at exanimo.com
Tue Dec 11 00:53:14 UTC 2007


Hey David,
Sorry I didn't write back sooner.  Here's the error I'm getting:

Exception in thread "main" uk.co.badgersinfoil.metaas.SyntaxException: 
Unsupported statement node type: CONDITION in "(b)"
        at 
uk.co.badgersinfoil.metaas.impl.StatementBuilder.build(StatementBuilder.java:57)
        at 
uk.co.badgersinfoil.metaas.impl.ASTStatementList.getStatementList(ASTStatementList.java:254)


It happens when I try to call getStatementList() on the else if 
StatementContainer in the following code:

if (a) {
    doSomething();
} else if (b) {
    doSomethingElse();
}

I'm getting to the elseif statement via 
ASIfStatement.getElse().getStatementList().  Any thoughts? 




More information about the metaas-dev mailing list