Flow control should not be implemented in on_command
Created by: skylerberg
Statements like if
, else
, end
should not be implemented directly in on_command
. Right now it is a real mess. This should either be moved to builtin commands or added to the grammar.
For ease of implementation I am leaning toward using builtin commands for this. This will make it a lot easier to deal with the case where we have a partially finished if statement that the user is typing directly into the command line.