Interface with four buttons, start, pause, continue, stop,
Code, for example, click start, start from line 1 to 1000 lines of code execution,
When performing to the X line, triggered the suspension, the X line immediately suspend execution,
When the trigger to start effective from X + 1 line,
Click the stop, no matter where execution position, immediately exits,
Could you tell me how to implement, pause and continue?
CodePudding user response:
It suddenly occurred to me that many years ago, a very famous C (or C + +, forgot) textbook exercises after class, allow you to do a similar BASIC language called singleton parser, similar:
10 let a=xx;//10 is in front of the line number
20 let b=xx;
30 let c=a + b;
Print 40 c;
//and GOTO keyword
To put it bluntly, script interpreter,
CodePudding user response:
Wrong, is Simpletron