Instead of stepping and switching by line, the interpreter would be more accurate and visually educational if it stepped per part of each line.
e.g.
would first fetch any variable values from memory (an EEPROM):
then step through PEMDAS if need-be:
and lastly the evaluation (which is still in PEMDAS technically...):
This simplified "if true" would then be passed into the original interpreter to control scope and flow control (see ScopeHandler).
It gets more complicated with function calls mid-line, but this is where the current interpreter fails. Thus, this is an imperative to-do to allow for as versatile code inputs as possible.
Instead of stepping and switching by line, the interpreter would be more accurate and visually educational if it stepped per part of each line.
e.g.
would first fetch any variable values from memory (an EEPROM):
then step through PEMDAS if need-be:
and lastly the evaluation (which is still in PEMDAS technically...):
This simplified "if true" would then be passed into the original interpreter to control scope and flow control (see ScopeHandler).
It gets more complicated with function calls mid-line, but this is where the current interpreter fails. Thus, this is an imperative to-do to allow for as versatile code inputs as possible.