Check() public method

public Check ( ) : bool
return bool
示例#1
0
文件: parser.cs 项目: ArildF/masters
    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.
    }