kaiser@aragon.gtc.de (Andreas Kaiser) (05/23/90)
> I want to write some programs which recognize the C-syntax > to selectively look at lots of C-sources. > I want to do thing like "cflow". Extract information from > C-sources. To do this I want to use Yacc (and maybe lex) > Is there anyone who has available the input part of Yacc? > I need the formal description. You can look for the GNU C compiler. It has a Yacc parser (or a Bison parser, Bison is a yacc clone). But you might get problems with the copyleft. I have seen a file in german Fidonet, pretending to be a C++ Yacc parser. Haven't loaded it, but since C++ is a superset of C it should help: The description line (that's all I know): YACCPP.ZIP 49942 05-09-90 YACC - Grammar for ANSI-C and C++ Available in german Fidonet node 2:507/205. Tel-Nr 49-231-47126. -- :::::::::::::::::::: Bang: ..!unido!gtc!aragon!ananke!kaiser :: Andreas Kaiser :: Smart: kaiser@ananke.UUCP :::::::::::::::::::: Fido: 2:509/5.7206