private void SemanticCheck(PrintStatement ast, CompilerContext context) { var val = expressionTyper.TypeExpression(ast.Value, context); }
public WhileType TypeExpression(StringConstant stringConst, CompilerContext context) { stringConst.CompilerScope = context.CurrentScope; return(WhileType.STRING); }
public WhileType TypeExpression(IntegerConstant intConst, CompilerContext context) { intConst.CompilerScope = context.CurrentScope; return(WhileType.INT); }
public WhileType TypeExpression(BoolConstant boolConst, CompilerContext context) { boolConst.CompilerScope = context.CurrentScope; return(WhileType.BOOL); }