Re: I found program for AST generating

Akim Demaille <[email protected]> Sun, 25 Jul 2021 18:02:34 +0200
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <[email protected]>
Hi Askar!

> Le 11 juil. 2021 à 01:28, Askar Safin <[email protected]> a écrit :
> 
> Hi. I long time ago I was interested in generating input files for bison (i. e. generating .y files) for producing AST. For example, I asked about it here: https://lists.gnu.org/archive/html/bug-bison/2018-12/msg00008.html . Now I found solution to this problem: BNFC. https://bnfc.digitalgrammars.com/ . You write single concise input file and BNFC generates bison's .y file (which parses to AST) from it together with pretty-printer.

That looks very nice, thanks for sharing!

Cheers!