Addresses issue #52 "Next clause ignores its parameter".
Added the loop variable to the flowsignal class so that it could be utilized by the Program class.
Created a separate return stack (actually dictionary) for loops. I believe using a single stack for GOSUBS and loops might have been problematic if loops were exited using GOTO statements anyway.
Tested ok with regression, startrek and adventure.
Addresses issue #52 "Next clause ignores its parameter".
Added the loop variable to the flowsignal class so that it could be utilized by the Program class.
Created a separate return stack (actually dictionary) for loops. I believe using a single stack for GOSUBS and loops might have been problematic if loops were exited using GOTO statements anyway.
Tested ok with regression, startrek and adventure.