pasrer.parse() will now fail on error

Removed is_valid() and get_error() methods.