I moved the parser and enumerated transitions into the scaffold package.
I also put some documentation into the parser that clearly defines the
transitions.