the parser was adapted from another project (see docstring on the Parser class)
class ParsingError(RuntimeError):
pass