Article View: gnu.g++.help
Article #561Looking for a G++ grammar (w/ symbol table)
From: Vivek P. Singhal
Date: Tue, 22 Dec 1992 11:19
Date: Tue, 22 Dec 1992 11:19
19 lines
1331 bytes
1331 bytes
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
Technical Details
Message-ID:
<SINGHAL.92Dec22111920@twins.cs.utexas.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!cs.utexas.edu!singhalShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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