public void atKeyword(Keyword k) throws CompileError { arrayDim = 0; int token = k.get(); switch (token) { case TRUE : case FALSE : exprType = BOOLEAN; break; case NULL : exprType = NULL; break; case THIS : case SUPER : exprType = CLASS; if (token == THIS) className = getThisName(); else className = getSuperName(); break; default : fatal(); } }
@Override public void atKeyword(Keyword k) throws CompileError { arrayDim = 0; int token = k.get(); switch (token) { case TRUE : case FALSE : exprType = BOOLEAN; break; case NULL : exprType = NULL; break; case THIS : case SUPER : exprType = CLASS; if (token == THIS) className = getThisName(); else className = getSuperName(); break; default : fatal(); } }
public void atKeyword(Keyword k) throws CompileError { arrayDim = 0; int token = k.get(); switch (token) { case TRUE : case FALSE : exprType = BOOLEAN; break; case NULL : exprType = NULL; break; case THIS : case SUPER : exprType = CLASS; if (token == THIS) className = getThisName(); else className = getSuperName(); break; default : fatal(); } }
public void atKeyword(Keyword k) throws CompileError { arrayDim = 0; int token = k.get(); switch (token) { case TRUE : case FALSE : exprType = BOOLEAN; break; case NULL : exprType = NULL; break; case THIS : case SUPER : exprType = CLASS; if (token == THIS) className = getThisName(); else className = getSuperName(); break; default : fatal(); } }
public void atKeyword(Keyword k) throws CompileError { arrayDim = 0; int token = k.get(); switch (token) { case TRUE : case FALSE : exprType = BOOLEAN; break; case NULL : exprType = NULL; break; case THIS : case SUPER : exprType = CLASS; if (token == THIS) className = getThisName(); else className = getSuperName(); break; default : fatal(); } }
public void atKeyword(Keyword k) throws CompileError { arrayDim = 0; int token = k.get(); switch (token) { case TRUE : case FALSE : exprType = BOOLEAN; break; case NULL : exprType = NULL; break; case THIS : case SUPER : exprType = CLASS; if (token == THIS) className = getThisName(); else className = getSuperName(); break; default : fatal(); } }
public void atKeyword(Keyword k) throws CompileError { arrayDim = 0; int token = k.get(); switch (token) { case TRUE : case FALSE : exprType = BOOLEAN; break; case NULL : exprType = NULL; break; case THIS : case SUPER : exprType = CLASS; if (token == THIS) className = getThisName(); else className = getSuperName(); break; default : fatal(); } }