Compleating assignment for interpreter, modified grammars, fixed tests

This commit is contained in:
elvis
2024-11-16 15:40:00 +01:00
parent 40055899c9
commit 9e599cc018
24 changed files with 593 additions and 1238 deletions

8
bin/sum.miniimp Normal file
View File

@ -0,0 +1,8 @@
def main with input in output out as
x := in;
out := 0;
while not x < 0 do (
out := out + x;
x := x - 1;
);
skip