API reference
python:astx:astx.LiteralUTF8Char
class LiteralUTF8Char
LiteralUTF8Char(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/string.py:131
Declared as: python:astx:astx.literals.string.LiteralUTF8Char
Literal class for UTF-8 characters.
Attributes
-
loc — Type: SourceLocation
-
type_ — Type: UTF8Char
-
value — Type: str
Methods
-
__init__ — Initialize the UTF-8 character literal.
-
__str__ — Return a string representation of the object.
-
get_struct — Return the structure of the object in a simplified.