Token
Overview
Token is a class in Aspose.3D FOSS for Python.
Token objects expose lexical details such as the token text, type, line number, and column position, useful for custom parsers.
This class declares 2 methods for Token objects in Python programs.
Available methods include: __init__, __repr__.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: column, line, text, type.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
text | str | Read | Gets the text. |
type | int | Read | Gets the type. |
line | int | Read | Gets the line. |
column | int | Read | Gets the column. |
Methods
| Signature | Description |
|---|---|
__init__(text: str, token_type: int, line: int, column: int) | Calls init(text, token_type, line, column) on this Token instance. |
__repr__() | Calls repr on this Token instance. |