Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!dykstra From: dykstra@cs.uiuc.edu (David Dykstra) Newsgroups: comp.lang.c++ Subject: Add-ons to Roskind's C++ YACC grammar? Message-ID: <1990Dec14.182956.7485@julius.cs.uiuc.edu> Date: 14 Dec 90 18:29:56 GMT Sender: news@julius.cs.uiuc.edu (USENet News) Organization: U of Illinois, Dept. of Computer Science, Systems Research Group Lines: 23 Could anyone make available to me add-ons to Jim Roskind's C++ YACC grammar? In particular I'm looking for these things: 1. Modifications to the lexer to enable recognition of the '# line' directives in the output of the cpp and stripping off of '//' comments. 2. A symbol table to be able to recognize types which have been typedef'ed or defined by a 'class' definition, including feeding back that information into the lexer. 3. Syntax tree-building YACC actions or some other general purpose method of doing actions based on the parsing. I only need to parse and process class definitions. I will write these things myself if I have to, but I thought I'd first check to see if anyone could save me some time. This will be used for the Choices C++-based operating system at the University of Illinois. Any hints will be appreciated. I am not a YACC expert. - Dave Dykstra dykstra@cs.uiuc.edu