lib.Parser¶
Exceptions
ParserException
: Common base class for all non-exit exceptions.MismatchingParserResult
: Signal the end from iterator.__next__().EmptyChoiseParserResult
: Signal the end from iterator.__next__().MatchingParserResult
: Signal the end from iterator.__next__().GreedyMatchingParserResult
: Signal the end from iterator.__next__().
Classes
SourceCodePosition
: Undocumented.Token
: Undocumented.SuperToken
: Undocumented.ValuedToken
: Undocumented.StartOfDocumentToken
: Undocumented.CharacterToken
: Undocumented.SpaceToken
: Undocumented.DelimiterToken
: Undocumented.NumberToken
: Undocumented.StringToken
: Undocumented.Tokenizer
: Undocumented.
-
exception
lib.Parser.
ParserException
[source]¶ Inheritance
Members
-
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
lib.Parser.
MismatchingParserResult
[source]¶ Inheritance
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
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
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
Members
-
args
¶
-
value
¶ generator return value
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
class
lib.Parser.
Token
(previousToken, start, end=None)[source]¶ Inheritance
Members
-
PreviousToken
¶
-
Length
¶
-
-
class
lib.Parser.
SuperToken
(startToken, endToken=None)[source]¶ Inheritance
Members
-
Length
¶
-
PreviousToken
¶
-
-
class
lib.Parser.
ValuedToken
(previousToken, value, start, end=None)[source]¶ Inheritance
Members
-
Length
¶
-
PreviousToken
¶
-
-
class
lib.Parser.
CharacterToken
(previousToken, value, start)[source]¶ Inheritance
Members
-
Length
¶
-
PreviousToken
¶
-
-
class
lib.Parser.
SpaceToken
(previousToken, value, start, end=None)[source]¶ Inheritance
Members
-
Length
¶
-
PreviousToken
¶
-
-
class
lib.Parser.
DelimiterToken
(previousToken, value, start, end=None)[source]¶ Inheritance
Members
-
Length
¶
-
PreviousToken
¶
-
-
class
lib.Parser.
NumberToken
(previousToken, value, start, end=None)[source]¶ Inheritance
Members
-
Length
¶
-
PreviousToken
¶
-
-
class
lib.Parser.
StringToken
(previousToken, value, start, end=None)[source]¶ Inheritance
Members
-
Length
¶
-
PreviousToken
¶
-