Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AST Visualisation

See original GitHub issue

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

One approach: generate some graphviz based on the Node structure. See and Depends on the user having graphviz installed, so maybe a pure-python approach would be better!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

krromecommented, Aug 27, 2020

I’ll work on this, but I’ll use graphviz (pydot package) due to lack of alternatives.

rmhsilvacommented, Sep 4, 2020

Ah, and I missed your question about list vs Any. You’re right, it looks like they’re wrong type annotations. Created #20 for it. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

AST Visualization on browser - NISHIO Hirokazu
AST Visualization on browser¶. Realtime JavaScript Abstract Syntax Tree Visualisation. Demo¶. Code Input. 1 + 2 * 3 ...
Read more >
AST explorer
An online AST explorer.
Read more >
JavaScript AST visualizer - JointJS
Show AST to SVG to PNG. Program VariableDeclarat ion VariableDeclarat or a 42 VariableDeclarat ion VariableDeclarat or b 5 function addA(d) BlockStatement ...
Read more >
16 Using Graphviz/dot to visualize our AST
16.1 Visualizing ASTs. Abstract Syntax Trees (ASTs) are a useful abstraction when dealing with programming languages as an object for analysis or ...
Read more >
ROSE Compiler Framework/How to visualize AST - Wikibooks
1 Overview · 2 Sample input code · 3 Dot Graph Generator · 4 Dot Graph Visualization · 5 Example session · 6...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found