public bool Parse() { //e = null; e = MatchStm(); // Match(TokenType.EoFSym); MatchToken(TokenType.EOFSYM); Tc = new TypeCheck(e, Functions); bool tsuccess = Tc.Check(); e = Tc.e; //Exp is modified in TypeCheck return success && tsuccess; //Return success if both parsing and typechecking succeed. }
public bool Parse() { //e = null; e = MatchStm(); // Match(TokenType.EoFSym); MatchToken(TokenType.EOFSYM); Tc = new TypeCheck(e, Functions); bool tsuccess = Tc.Check(); e = Tc.e; //Exp is modified in TypeCheck return(success && tsuccess); //Return success if both parsing and typechecking succeed. }