string
¶
ASTx Data Types module.
Classes:
-
LiteralUTF8Char
–Literal class for UTF-8 characters.
-
LiteralUTF8String
–Literal class for UTF-8 strings.
LiteralUTF8Char
¶
LiteralUTF8Char(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
Literal class for UTF-8 characters.
Methods:
-
get_struct
–Return the structure of the object in a simplified.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/literals/string.py
50 51 52 53 54 55 56 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the structure of the object in a simplified.
Source code in src/astx/literals/string.py
62 63 64 65 66 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
LiteralUTF8String
¶
LiteralUTF8String(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
Literal class for UTF-8 strings.
Methods:
-
get_struct
–Return the structure of the object in a simplified.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/literals/string.py
24 25 26 27 28 29 30 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the structure of the object in a simplified.
Source code in src/astx/literals/string.py
36 37 38 39 40 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|