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