Hello,
I used:
set rextrace=on
and stepped thorugh the code...
It parse almost all of the file, but it stumble on the last
"code":0}
and never complete as it can't handle that last section.
The result is that the code skip past and return the same text over and over again in rapid succession, thus eventually look up the computer.
The short term solution would be just to remove what's left, but I'll look into it somewhat to see what I can do about it.
Recursion:
Problems usually result in that the interpreter exit abnormally with a message that contain a call to the same function, though visually offset from the previous. Rexx can not handle that many levels of recursion s0 it's possible to write code that can parse an advanced file. One has to handle such solutions with queues or stacks.
call bla( param_1, param_n )
call bla( param_1, param_n )
call bla( param_1, param_n )
call bla( param_1, param_n )
call bla( param_1, param_n )
call bla( param_1, param_n )
call bla( param_1, param_n )
call bla( param_1, param_n )