internal override bool SyntaxCheck(bool topLevel, bool inLoop) { if (!topLevel) { Error("Function cannot be nested"); return(false); } return(statementList.SyntaxCheck(false, false)); }
internal override bool SyntaxCheck(bool topLevel, bool inLoop) { if (topLevel) { Error("Block must be in a function"); return(false); } return(statementList.SyntaxCheck(topLevel, inLoop)); }