Beispiel #1
0
 public override Tuple<AST.Env, AST.Stmt> GetStmt(AST.Env env)
 {
     AST.Expr expr = this.expr.GetExpr(env);
     expr = AST.TypeCast.MakeCast(expr, env.GetCurrentFunction().ret_t);
     return new Tuple<AST.Env, AST.Stmt>(env, new AST.ReturnStmt(expr));
 }