Added tests; weird & ugly workaround in the parser

This commit is contained in:
Dmitry Boulytchev 2019-09-22 22:25:05 +03:00
parent d69cb3d49d
commit 39388d77fd
13 changed files with 108 additions and 10 deletions

12
regression/test057.expr Normal file
View file

@ -0,0 +1,12 @@
fun a (x) {return x + 1}
fun b (x) {return x + 2}
fun c (x) {return x + 3}
{
local funs = [a, b, c];
local n = read (), i;
for i := 0, i < 3, i := i+1 do
write (funs[i] (n))
od
}