base
¶
AST classes and functions.
AST
¶
AST main expression class.
Source code in src/astx/base.py
138 139 140 141 142 143 144 145 146 147 148 149 |
|
get_struct
abstractmethod
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a structure that represents the node object.
Source code in src/astx/base.py
207 208 209 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
ASTNodes
¶
ASTNodes(name: str = 'entry', loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: AST
AST with a list of nodes.
Source code in src/astx/base.py
230 231 232 233 234 235 236 237 238 239 240 241 242 243 |
|
append
¶
append(value: AST) -> None
Append a new node to the stack.
Source code in src/astx/base.py
259 260 261 |
|
get_struct
abstractmethod
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a structure that represents the node object.
Source code in src/astx/base.py
207 208 209 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
DataType
¶
Bases: Expr
AST main expression class.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
Expr
¶
Bases: AST
AST main expression class.
Source code in src/astx/base.py
138 139 140 141 142 143 144 145 146 147 148 149 |
|
get_struct
abstractmethod
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a structure that represents the node object.
Source code in src/astx/base.py
207 208 209 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
OperatorType
¶
Bases: DataType
AST main expression class.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
StatementType
¶
Bases: AST
AST main expression class.
Source code in src/astx/base.py
138 139 140 141 142 143 144 145 146 147 148 149 |
|
Undefined
¶
Bases: Expr
Undefined expression class.
Source code in src/astx/base.py
138 139 140 141 142 143 144 145 146 147 148 149 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
286 287 288 289 290 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
is_using_jupyter_notebook
¶
is_using_jupyter_notebook() -> bool
Check if it is executed in a jupyter notebook.
Source code in src/astx/base.py
34 35 36 37 38 39 40 41 42 43 |
|