I found program for AST generating

Askar Safin <[email protected]> Sun, 11 Jul 2021 02:28:23 +0300
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <[email protected]>
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.

==
Askar Safin
http://safinaskar.com
https://sr.ht/~safinaskar
https://github.com/safinaskar