Parser engine modifications

Last commit before modifying parser engine to remove pointer-based
variables: this should make them QThread-compatible.