Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

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.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: