Check() public method

public Check ( ) : bool
return bool
Ejemplo n.º 1
0
    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.
    }
Ejemplo n.º 2
0
    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.
    }