Idea for implementing reexecution
Scenario: User has start the script exection.
- The exection fails during the interpretation a a command could not resolved.
- Or the execution succeeds until the end.
In the end of an execution a special marker, like a nice unicode symbol ⇨ in addition with syntax highlightning. This unicode symbol is ignored (skipped) by the parser.
But can be found by string search, and from the index position of the unicode marker and AST we can compute a reduce tree.
The reduce tree is then executed with the old interpreter state.