Token

class Token(text)[source]

Represents a single term/character

Methods

Token.__init__(text)

Attributes

Token.And

Token.DescendantGroup

Token.DescendantGroupEnd

Token.ExactMatch

Token.ExactMatchEnd

Token.ExactMatchOptional

Token.LogicalGroup

Token.LogicalGroupEnd

Token.LogicalNegation

Token.NotInLine

Token.Or

Token.Tag

Token.Wildcard

Token.__init__(text)[source]
Token.And = 0
Token.DescendantGroup = 4
Token.DescendantGroupEnd = 5
Token.ExactMatch = 11
Token.ExactMatchEnd = 12
Token.ExactMatchOptional = 14
Token.LogicalGroup = 7
Token.LogicalGroupEnd = 8
Token.LogicalNegation = 9
Token.NotInLine = 13
Token.Or = 6
Token.Tag = 1
Token.Wildcard = 10