public class TypeChecker extends java.lang.Object implements TypeVisitor
| Modifier and Type | Field and Description |
|---|---|
static BOOLEAN |
BOOLEAN |
int |
errors |
static INT |
INT |
static NIL |
NIL |
static STRING |
STRING |
static VOID |
VOID |
| Constructor and Description |
|---|
TypeChecker() |
public static final BOOLEAN BOOLEAN
public static final INT INT
public static final NIL NIL
public static final VOID VOID
public static final STRING STRING
public int errors
public Type visit(Program ast)
visit in interface TypeVisitorpublic Type visit(ClassDecl ast)
visit in interface TypeVisitorpublic Type visit(ThreadDecl ast)
visit in interface TypeVisitorpublic Type visit(MethodDecl ast)
visit in interface TypeVisitorpublic Type visit(VoidDecl ast)
visit in interface TypeVisitorpublic Type visit(VarDecl ast)
visit in interface TypeVisitorpublic Type visit(java.util.AbstractList list)
TypeVisitorvisit in interface TypeVisitorpublic Type visit(AssignStmt ast)
visit in interface TypeVisitorpublic Type visit(BlockStmt ast)
visit in interface TypeVisitorpublic Type visit(IfStmt ast)
visit in interface TypeVisitorpublic Type visit(XinuCallStmt ast)
visit in interface TypeVisitorpublic Type visit(XinuCallExpr ast)
visit in interface TypeVisitorpublic Type visit(WhileStmt ast)
visit in interface TypeVisitorpublic Type visit(AddExpr ast)
visit in interface TypeVisitorpublic Type visit(AndExpr ast)
visit in interface TypeVisitorpublic Type visit(DivExpr ast)
visit in interface TypeVisitorpublic Type visit(MulExpr ast)
visit in interface TypeVisitorpublic Type visit(SubExpr ast)
visit in interface TypeVisitorpublic Type visit(EqualExpr ast)
visit in interface TypeVisitorpublic Type visit(GreaterExpr ast)
visit in interface TypeVisitorpublic Type visit(LesserExpr ast)
visit in interface TypeVisitorpublic Type visit(NotEqExpr ast)
visit in interface TypeVisitorpublic Type visit(NotExpr ast)
visit in interface TypeVisitorpublic Type visit(NegExpr ast)
visit in interface TypeVisitorpublic Type visit(OrExpr ast)
visit in interface TypeVisitorpublic Type visit(ArrayExpr ast)
visit in interface TypeVisitorpublic Type visit(CallExpr ast)
visit in interface TypeVisitorpublic Type visit(FieldExpr ast)
visit in interface TypeVisitorpublic Type visit(Formal ast)
visit in interface TypeVisitorpublic Type visit(IdentifierExpr ast)
visit in interface TypeVisitorpublic Type visit(NewArrayExpr ast)
visit in interface TypeVisitorpublic Type visit(NewObjectExpr ast)
visit in interface TypeVisitorpublic Type visit(NullExpr ast)
visit in interface TypeVisitorpublic Type visit(ThisExpr ast)
visit in interface TypeVisitorpublic Type visit(ArrayType ast)
visit in interface TypeVisitorpublic Type visit(IdentifierType ast)
visit in interface TypeVisitorpublic Type visit(IntegerType ast)
visit in interface TypeVisitorpublic Type visit(IntegerLiteral ast)
visit in interface TypeVisitorpublic Type visit(StringLiteral ast)
visit in interface TypeVisitorpublic Type visit(BooleanType ast)
visit in interface TypeVisitorpublic Type visit(FalseExpr ast)
visit in interface TypeVisitorpublic Type visit(TrueExpr ast)
visit in interface TypeVisitor