3 ms·
I've gotten a lot of mileage from Graphviz over the years. As an example outside of work, I wanted a way to depict parse trees for an article I was writing. So,
by kmstout 6y ago
I've gotten a lot of mileage from Graphviz over the years. As an example outside of work, I wanted a way to depict parse trees for an article I was writing. So, after I wrote an EBNF parser generator (great fun!), I wrote a little utility to apply a grammar to stdin and emit to stdout a JSON representation of the resulting parse tree; another utility handles converting the JSON to dot, which I can plot at my leisure.
https://github.com/reindeereffect/tools-from-blog/tree/master/yakety https://github.com/reindeereffect/tools-from-blog/tree/maste...
- jjice 6y agoI was writing a parser recently, and I was fed up with having to look at a textual tree output. I did a bit of Googling, found Graphviz, and I had the whole thing working in like 15 minutes. I think it's absolutely essential to me now anytime I work with trees/graphs that I need to visualize.