refactored parser plugin

ripped p-code stuff to a separate pluggable parser.