home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky gnu.g++.help:1612 comp.lang.c++:18311
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!cs.utexas.edu!singhal
- From: singhal@cs.utexas.edu (Vivek P. Singhal)
- Newsgroups: gnu.g++.help,comp.lang.c++
- Subject: Looking for a G++ grammar (w/ symbol table)
- Followup-To: gnu.g++.help
- Date: 22 Dec 92 11:19:20
- Organization: Univ. of Texas at Austin, CS Dept.
- Lines: 19
- Distribution: world
- Message-ID: <SINGHAL.92Dec22111920@twins.cs.utexas.edu>
- NNTP-Posting-Host: twins.cs.utexas.edu
-
- I'm planning to write a program which will need to parse C++. I've
- looked at Jim Roskind's grammar (which is mentioned in the
- comp.lang.c++ FAQ), but it lacks a symbol table (and the appropriate
- actions which insert symbols into the table). I'm considering using
- the grammar of the G++ compiler instead; presumably, all I'd need to
- do is strip out the code generation stuff, leaving behind only the
- actions related to parsing.
-
- Before I begin this task, however, I was wondering if anyone has
- already done this (i.e. built a stand-alone G++ grammar), and if they
- are willing to share the code. Thanks,
- --
-
-
- Vivek
-
- ------------------------------------------------------------------------------
- E-mail: singhal@cs.utexas.edu Phone: (512) 471-9711 Office: TAY 3.104C
- USmail: CS Dept. TAY 2.124 \n Univ. of Texas @ Austin \n Austin, TX 78712-1188
-