Initial commit

This commit is contained in:
2025-08-09 20:33:08 +10:00
commit 7364a3ac3e
8 changed files with 1923 additions and 0 deletions

5
tests/infinity.grnd Normal file
View File

@@ -0,0 +1,5 @@
stdlnout "To infinity and beyond!"
set &counter 0
add 1 $counter &counter
stdlnout $counter
jump %3

29
tests/test.grnd Normal file
View File

@@ -0,0 +1,29 @@
stdlnout "shabingus"
stdlnout 7
stdlnout 3.14
stdlnout true
set &dingus "This is a variable"
# commenting something
stdlnout $dingus
# testing adding
add 9 10 &out
stdlnout $out
add 1.3 4 &out
stdlnout $out
add "Hello " "World" &out
stdlnout $out
# testing subtraction
subtract 3 2 &out
stdlnout $out
# testing multiplication
multiply 5 10 &out
stdlnout $out
# testing division
divide 10 2 &out
stdlnout $out

5
tests/to1000.grnd Normal file
View File

@@ -0,0 +1,5 @@
set &var 0
add 1 $var &var
stdlnout $var
greater 1000 $var &cond
if $cond %2