Replies: 1 comment
-
This is certainly possible, given the the reflective nature of parsers. The Smalltalk version of PetitParser had a couple of visualizations and even a visual IDE, check 3.5 Tool Support in this paper. I am not aware that this has been done with PetitParser for Dart yet, but creating a simple visualization for example using Graphviz should be easy: use allParser to fetch the nodes of the graph, and query children to get all outgoing edges. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to generate human-readable syntax diagrams or some human-readable syntax definition as documentation for a parser built with PetitParser?
Beta Was this translation helpful? Give feedback.
All reactions