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