Earlier quoted context omitted.
What about raise an exception?
Exceptions should only be used for exceptional cases. For a parser, bad input should be expected.
Why?
(My thoughts on the matter: http://www.mcherm.com/reasons-why-my-code-style-is-wrong.htm... )