|yacc to BNF anyone email@example.com.OZ.AU (1993-07-22)|
|Re: yacc to BNF anyone firstname.lastname@example.org (1993-07-23)|
|From:||email@example.com.OZ.AU (Jason David LEE)|
|Keywords:||yacc, question, comment|
|Organization:||Department of Computer Sci, University of Melbourne|
|Date:||Thu, 22 Jul 1993 05:42:18 GMT|
Does anyone know of any tool/program/hack etc that given
a yacc file will extract the bnf grammar ???
I did start off with a bnf grammer but changed it while writing
the yacc stuff and have since lost the list of changes.
If any one has an idea's or knows where I can find something to
do the above I would like to here from you.
Thanks in advance.
Internet address: firstname.lastname@example.org.OZ.AU
Name : Jason David Lee
Phone (work) : 287 9165 (Rm L2.11)
[Berkeley yacc with the -v option puts the grammar without any of the
action code at the beginning of the listing file. I'd think it'd be
pretty easy to write a sed or awk script to extract that and change the
colons to ::= -John]
Return to the
Search the comp.compilers archives again.