Reimplements state in the ChemnoParser module.
Reimplements state in the ChemnoParser module.

1. The state is changed to use record syntax instead of a tuple.
2. Removes the separate function-actions for popString, addTxtRev and
handleCmd.

MWRuszczycky/Chemno