bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I announce Haskell library for generating flex and bison input files for


From: Askar Safin
Subject: I announce Haskell library for generating flex and bison input files for constructing AST
Date: Wed, 26 Dec 2018 06:32:54 +0300

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

[Prev in Thread] Current Thread [Next in Thread]