feat: add basic CLI (load files)

This commit is contained in:
Matthieu Bessat 2022-05-15 19:45:27 +02:00
parent 538205e8a5
commit 906949d691
11 changed files with 112 additions and 26 deletions

View file

@ -3,4 +3,4 @@ set a to input_number()
set b to input_number()
set res to a+b
eval print_int(c)
print_int(res)

View file

@ -1,2 +1,3 @@
# just print 42
eval print_number(42)
print_number(42)

5
examples/sequence.ltor Normal file
View file

@ -0,0 +1,5 @@
set i to 0
while !(i = 10) do
print_number(i)
set i to i+1
end