tweag / topiary

https://topiary.tweag.io/
MIT License
542 stars 23 forks source link

Ability to show syntax tree in the playground #362

Open torhovland opened 1 year ago

torhovland commented 1 year ago

Is your feature request related to a problem? Please describe. It should be able to turn on display of parsed syntax tree in the playground. Maybe even a GraphViz figure!

Describe the solution you'd like A checkbox for enabling syntax tree output.

Describe alternatives you've considered The alternative is to not do this.

Additional context See https://ormolu-live.tweag.io and https://tree-sitter.github.io/tree-sitter/playground for inspiration.

Xophmeister commented 1 year ago

An addendum to this would be to highlight matches of a particular query, either in the code, the visualisation, or both. Maybe that's worth a separate issue, as it would go a long way towards creating a powerful debugging tool...