lib.Parser

Exceptions

Classes

exception lib.Parser.ParserException[source]

Inheritance

Inheritance diagram of ParserException

Members

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception lib.Parser.MismatchingParserResult[source]

Inheritance

Inheritance diagram of MismatchingParserResult

Members

args
value

generator return value

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception lib.Parser.EmptyChoiseParserResult[source]

Inheritance

Inheritance diagram of EmptyChoiseParserResult

Members

args
value

generator return value

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception lib.Parser.MatchingParserResult[source]

Inheritance

Inheritance diagram of MatchingParserResult

Members

args
value

generator return value

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception lib.Parser.GreedyMatchingParserResult[source]

Inheritance

Inheritance diagram of GreedyMatchingParserResult

Members

args
value

generator return value

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

class lib.Parser.SourceCodePosition(row, column, absolute)[source]

Inheritance

Inheritance diagram of SourceCodePosition

Members

class lib.Parser.Token(previousToken, start, end=None)[source]

Inheritance

Inheritance diagram of Token

Members

PreviousToken
Length
class lib.Parser.SuperToken(startToken, endToken=None)[source]

Inheritance

Inheritance diagram of SuperToken

Members

Length
PreviousToken
class lib.Parser.ValuedToken(previousToken, value, start, end=None)[source]

Inheritance

Inheritance diagram of ValuedToken

Members

Length
PreviousToken
class lib.Parser.StartOfDocumentToken[source]

Inheritance

Inheritance diagram of StartOfDocumentToken

Members

Length
PreviousToken
class lib.Parser.CharacterToken(previousToken, value, start)[source]

Inheritance

Inheritance diagram of CharacterToken

Members

Length
PreviousToken
class lib.Parser.SpaceToken(previousToken, value, start, end=None)[source]

Inheritance

Inheritance diagram of SpaceToken

Members

Length
PreviousToken
class lib.Parser.DelimiterToken(previousToken, value, start, end=None)[source]

Inheritance

Inheritance diagram of DelimiterToken

Members

Length
PreviousToken
class lib.Parser.NumberToken(previousToken, value, start, end=None)[source]

Inheritance

Inheritance diagram of NumberToken

Members

Length
PreviousToken
class lib.Parser.StringToken(previousToken, value, start, end=None)[source]

Inheritance

Inheritance diagram of StringToken

Members

Length
PreviousToken
class lib.Parser.Tokenizer[source]

Inheritance

Inheritance diagram of Tokenizer

Members

class TokenKind[source]

An enumeration.

SpaceChars = 0
AlphaChars = 1
NumberChars = 2
DelimiterChars = 3
OtherChars = 4
static GetCharacterTokenizer(iterable)[source]
classmethod GetWordTokenizer(iterable, alphaCharacters='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', numberCharacters='0123456789', whiteSpaceCharacters=' \t')[source]