forked from ground/ground
Initial commit
This commit is contained in:
5
tests/infinity.grnd
Normal file
5
tests/infinity.grnd
Normal 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
29
tests/test.grnd
Normal 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
5
tests/to1000.grnd
Normal file
@@ -0,0 +1,5 @@
|
||||
set &var 0
|
||||
add 1 $var &var
|
||||
stdlnout $var
|
||||
greater 1000 $var &cond
|
||||
if $cond %2
|
Reference in New Issue
Block a user