exception in AstBuilder

Feb 27, 2012 at 11:16 AM

Hi,

with this grammar

this.Root = program;           

program.Rule = declarations + blocks               

|declarations+operations;           

declarations.Rule = MakePlusRule(declarations, declaration);           

declaration.Rule = declarationArray|declarationVariable;         

declarationVariable.Rule = identifier + ToTerm(":") + variableType + semi;         

declarationArray.Rule = identifier + ":" + "an" + "array" + "of" + identifier + semi;                

variableType.Rule = number;

I get an error in the class AstBuilder in the function public virtual void BuildAst(ParseTreeNode parseNode) in line 96