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