Diff
Not logged in

Differences From Artifact [baaa1d71de4dc9d8]:

To Artifact [003971cb94b55966]:


173 173 ctxNeo.add(p, args[i]); 174 174 return eval(e.funbody, ctxNeo); 175 175 }); 176 176 } 177 177 throw new PolemyRuntimeException(sprintf!"Unknown Kind of Expression %s at [%s]"(typeid(_e), _e.pos)); 178 178 } 179 179 180 -/* 181 180 unittest 182 181 { 183 182 auto r = evalString(`var x = 21; x = x + x*x;`); 184 183 assert( r.val == new IntValue(BigInt(21+21*21)) ); 185 184 assert( r.ctx["x"] == new IntValue(BigInt(21+21*21)) ); 186 185 assert( !collectException(r.ctx["x"]) ); 187 186 assert( collectException(r.ctx["y"]) ); ................................................................................ 225 224 if(x<2) 226 225 { 1; } 227 226 else 228 227 { fib(x-1) + fib(x-2); }; 229 228 }; 230 229 print(fib(10));`); 231 230 } 232 -*/