Python Objects
AST Type mapping
AST Rule Type | Python Object |
---|---|
Import | Import or ImportFrom |
Function Call | FunctionCall |
Function Definition | FunctionDefinition |
If Condition | IfCondition |
For Loop | ForStatement |
Try BLock | TryBlock |
Assignment | Assignment |
Class Definition | ClassDefinition |