Add command grammar to parse.py.

Also added a parse_stack for debugging, which indents the magenta
(parse status) debug outputs.