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

NameTypeAccessDescription
textstrReadGets the text.
typeintReadGets the type.
lineintReadGets the line.
columnintReadGets the column.

Methods

SignatureDescription
__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.

See Also

 English