feat: add basic CLI (load files)
This commit is contained in:
parent
538205e8a5
commit
906949d691
11 changed files with 112 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
# just print 42
|
||||
eval print_number(42)
|
||||
print_number(42)
|
||||
|
||||
|
|
|
|||
5
examples/sequence.ltor
Normal file
5
examples/sequence.ltor
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
set i to 0
|
||||
while !(i = 10) do
|
||||
print_number(i)
|
||||
set i to i+1
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue