- 3.0.1 core module.
|
Public Member Functions | |
def | __init__ (self, token_type, name, start, end) |
def | __str__ (self) |
Public Attributes | |
token_type | |
name | |
start | |
end | |
whence | |
Data container to represent a C++ token. Tokens can be identifiers, syntax char(s), constants, or pre-processor directives. start contains the index of the first char of the token in the source end contains the index of the last char of the token in the source
def cpp.tokenize.Token.__init__ | ( | self, | |
token_type, | |||
name, | |||
start, | |||
end | |||
) |
def cpp.tokenize.Token.__str__ | ( | self | ) |
cpp.tokenize.Token.token_type |
Referenced by pump.Token.__str__(), and pump.Token.Clone().
cpp.tokenize.Token.name |
Referenced by cpp.tokenize.Token.__str__().
cpp.tokenize.Token.start |
Referenced by cpp.tokenize.Token.__str__(), and pump.Token.__str__().
cpp.tokenize.Token.end |
Referenced by cpp.tokenize.Token.__str__().
cpp.tokenize.Token.whence |