Hi. I want simple way for constructing AST using bison. So I wrote Haskell 
library, which does exactly that. Here is the code and short description: 
https://github.com/safinaskar/bison-generator . This library generates code for 
both parsing and pretty-printing from the same description of language.

Currently I didn't write much docs, because I'm not sure that people are 
interested in my project. So, are you interested? Do you want more info? If 
yes, then I can write more docs, share my design decisions and offer some 
advice on implementing similar features in bison using my experience. (This 
will be easy for me.)

Also, I didn't get answer for 
http://lists.gnu.org/archive/html/bug-bison/2018-12/msg00033.html , so I had to 
just call abort ().

Also, the library does some obviously wrong things, for example, it passes 
resulting AST via global variable. Of course, I will fix this, I have it in my 
personal TODO list, I just wanted to share the library right now to collect 
opinions early

==
Askar Safin
http://vk.com/safinaskar

Reply via email to