initial commit

This commit is contained in:
Matthieu Bessat 2022-04-29 12:30:44 +02:00
parent cdc6a08f41
commit 17c7c247af
25 changed files with 1557 additions and 223 deletions

View file

@ -1 +0,0 @@
PRINT 1

View file

@ -1 +0,0 @@
PRINT (1+2)

View file

@ -1,5 +0,0 @@
LET A BE 0
WHILE NOT A DO
PRINT A
LET A BE A+1
ENDWHILE

View file

@ -1 +0,0 @@
PRINT "Hello World"

View 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
View file

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