3 ms·
I once wrote an ASCII graph/tree compiler that compiles ASCII representations like the example in the article into data structures. https://github.com/mgraczyk
by mgraczyk 13y ago
I once wrote an ASCII graph/tree compiler that compiles ASCII representations like the example in the article into data structures.
https://github.com/mgraczyk/GraphCompiler https://github.com/mgraczyk/GraphCompiler
The data structures can be used directly in Python or parsed/consumed elsewhere. I think it is pretty useful, and I have used it in a couple of places where moderately complicated trees are used to generate C/C++ code.