Allow parsers to raise ParseException

to indicate malformed input. Fixes #14.