[comp.lang.c++] Add-ons to Roskind's C++ YACC grammar?

dykstra@cs.uiuc.edu (David Dykstra) (12/15/90)

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