@@ -6,9 +6,9 @@ else { "any" }}}} }; def binop(a,b,c) { - fun(x,y){@v( + fun(x,y){@value( if( @type(x)=="undefined" || @type(y)=="undefined" ) { "undefined" } else { if( @type(x)==a && @type(y)==b ) { c } else { "error" } } )} @@ -22,7 +22,7 @@ def mergeType(a,b) { if( a == "undefined" ) { if(b=="undefined"){"error"}else{b} } else { a } }; -@type "if" = fun(c,t,e) {@v( +@type "if" = fun(c,t,e) {@value( if(@type(c)=="int" ) { mergeType(@type(t()), @type(e())) } else { "error" } )};