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