-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AST Visualisation #14
Comments
I'll work on this, but I'll use graphviz (pydot package) due to lack of alternatives. |
Great! Sounds good, graphviz would be great for a first implementation. |
Nice, looks great! Colouring and symbols will be super useful. A couple of thoughts
The thought process guiding me: I want to be able to, at a glance, understand the key elements in my program. The inputs, events and functions (python and Hark) involved. Like, where data is coming from, which Python functions are using it, any constants, etc. If it helps me visualise data flow, even better. Sort of like we're building a pipeline data-flow visualisation (e.g. Airflow style - https://airflow.apache.org/docs/stable/ui.html). |
Ah, and I missed your question about |
It'd be great to be able to visualise the result of parsing -- the AST. This could be triggered with a new CLI command, e.g.
teal ast file.tl
.One approach: generate some graphviz based on the Node structure. See parser.py and nodes.py. Depends on the user having graphviz installed, so maybe a pure-python approach would be better!
The text was updated successfully, but these errors were encountered: