initial commit
This commit is contained in:
parent
cdc6a08f41
commit
17c7c247af
25 changed files with 1557 additions and 223 deletions
|
|
@ -1 +0,0 @@
|
|||
PRINT 1
|
||||
|
|
@ -1 +0,0 @@
|
|||
PRINT (1+2)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
LET A BE 0
|
||||
WHILE NOT A DO
|
||||
PRINT A
|
||||
LET A BE A+1
|
||||
ENDWHILE
|
||||
|
|
@ -1 +0,0 @@
|
|||
PRINT "Hello World"
|
||||
6
examples/input_and_compute.ltor
Normal file
6
examples/input_and_compute.ltor
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# script to add two numbers
|
||||
set a to input_number()
|
||||
set b to input_number()
|
||||
set res to a+b
|
||||
|
||||
eval print_int(c)
|
||||
2
examples/print_42.ltor
Normal file
2
examples/print_42.ltor
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# just print 42
|
||||
eval print_number(42)
|
||||
Loading…
Add table
Add a link
Reference in a new issue