Compleating assignment for interpreter, modified grammars, fixed tests
This commit is contained in:
8
bin/sum.miniimp
Normal file
8
bin/sum.miniimp
Normal 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
|
||||
Reference in New Issue
Block a user