Beginnings of loops

This commit is contained in:
2024-11-16 13:44:04 -06:00
parent 5fdd28fe0e
commit 7213f4a487
7 changed files with 41 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ foo <- ->
bar()
baz()
# functions with block statements
oo <- x -> y -> x * y + 7 ## Multiple argument functions
foo <- x -> y -> x * y + 7 ## Multiple argument functions
if test?()
do-something()
elif other-test?()
@@ -23,3 +23,8 @@ else
if second-test?()
do-a-real-bad-thing()
## Nested blocks
i <- 1
loop until i > 10
print(i)
i <- 1