VERY basic functions implementation
This commit is contained in:
17
test2.grnd
17
test2.grnd
@@ -1,7 +1,10 @@
|
||||
set &counter 0
|
||||
set &cond 1
|
||||
@loop
|
||||
add $counter 1 &counter
|
||||
greater 100000000 $counter &cond
|
||||
if $cond %loop
|
||||
end 0
|
||||
fun -string !test
|
||||
stdout "this was called by a function!!!!\n"
|
||||
return
|
||||
endfun
|
||||
|
||||
call !test
|
||||
set &x 2
|
||||
set &y 3
|
||||
add $x $y &x
|
||||
end $x
|
Reference in New Issue
Block a user