Add an option to let the parser use a constructor.

This lets a parser return an object with a given prototype.
Merge pull request #6 from waywardmonkeys/feature-construct

Add an option to let the parser use a constructor.