compute: sequence command parser
Created by: rvantonder
Adds scaffolding for 3rd command, output
. Since we now have 3 commands, this prompts a restructure so that toCommand
-> parseCommand
, where parseCommand
returns the first parser that succeeds at parsing a pattern to a command.
This is better than the previous parse structure which would require us to do like:
// try parse command one
if ok {...}
// fail? ok try next
if ok {...}
// ... for every added command