pyre.parsing.exceptions

Module Contents

exception pyre.parsing.exceptions.ParsingError

Bases: pyre.framework.exceptions.FrameworkError

Base class for parsing exceptions

Can be used to catch all exceptions raised by this package

exception pyre.parsing.exceptions.IndentationError

Bases: pyre.parsing.exceptions.ParsingError

Exception raised when the scanner detects an inconsistent indentation pattern in the source

description = bad indentation
exception pyre.parsing.exceptions.SyntaxError(token, **kwds)

Bases: pyre.parsing.exceptions.ParsingError

Exception raised when a syntax error is detected

description = syntax error: {0.token.lexeme!r}
exception pyre.parsing.exceptions.TokenizationError(text, **kwds)

Bases: pyre.parsing.exceptions.ParsingError

Exception raised when the scanner fails to extract a token from the input stream

description = could not match {0.text!r}