Add while expressions

This commit is contained in:
Bruno BELANYI 2022-06-01 20:19:56 +02:00
parent 19c1f11414
commit 26999482a3
5 changed files with 1825 additions and 1306 deletions

View file

@ -40,3 +40,16 @@ if 12 then if 27 then 42 else "nope"
condition: (integer_literal)
consequence: (integer_literal)
alternative: (string_literal))))
================================================================================
While
================================================================================
while 12 do 27
--------------------------------------------------------------------------------
(source_file
(while_expression
condition: (integer_literal)
body: (integer_literal)))