Created
October 1, 2022 13:04
-
-
Save hyunjimoon/875d33ac3f609ad3aaa75372291c60ca to your computer and use it in GitHub Desktop.
pysd ast print
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for section in am.sections: | |
for element in section.elements: | |
print("*" * 10) | |
print(f"name: {element.name}") | |
print(f"length: {len(element.components)}") | |
for component in element.components: | |
print(f"type: {component.type}") | |
print(f"subtype: {component.subtype}") | |
print(f"subscript: {component.subscripts}") | |
print(component.ast) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment