03-17-2020, 12:23 PM
(This post was last modified: 11-25-2020, 01:04 PM by flederohr.
Edit Reason: faster output / explanation on compilation and execution
)
Calculates fibonacci numbers and prints them in the console
save script as fibo
and compile
on compiling the first time a warning is posted
This warning is just appearing as on compile time the self referenced script file is not jet available.
Just execute the compiled script
At some point the message "StackOverflowError" is shown.
The script execution is terminated at this point due to the stack limit on the parser has been reached.
save script as fibo
and compile
Code:
compile fiboCode:
var i
varexists ext1
if varexists
varexists ext2
if varexists
print %i%
skipline
!i=ext1+ext2
fibo %ext2% %i%
endif
else
!i=1
print %i%
skipline
fibo %i% %i%
endifCode:
Error: "/fibo" is not a valid dsscriptThis warning is just appearing as on compile time the self referenced script file is not jet available.
Just execute the compiled script
Code:
> fiboAt some point the message "StackOverflowError" is shown.
The script execution is terminated at this point due to the stack limit on the parser has been reached.

