From 2127842210776085891
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a89df7c930d1da0c
X-Google-Attributes: gidf78e5,public
From: akv@srl03.cacs.usl.edu (Anil Vijendran)
Subject: Re: C or C++ YACC Grammar
Date: 1995/04/14
Message-ID: <AKV.95Apr14073818@srl03.cacs.usl.edu>#1/1
X-Deja-AN: 100441588
references: <3m94dd$irf@newsbf02.news.aol.com>
to: centauris@aol.com (CentauriS)
organization: Center for Advanced Computer Studies, U of SW Louisiana
reply-to: akv@cacs.usl.edu
newsgroups: comp.std.c++

>>>>> On 9 Apr 1995 13:10:05 -0400, centauris@aol.com (CentauriS)
said:

    >> Does anyone know where I can find a YACC compatible grammar for C or C++.
    >> I need to parse some C++ code.

If you need to do substantial code analysis, then check out the C++
Parser Engine @ ftp.cs.brown.edu.... It's a framework for parsing C++
programs. It builds an abstract syntax tree out of the C++ program
text. 

Else the best thing to do would be to use fuzzy parsing.... that is
have ``don't care'' productions in your grammar for information that
you aren't interested in. 

    >> centauris@aol.com
--
Anil

___________________________________________________________________________
Anil K Vijendran                    USL Box 43007, Lafayette, LA 70504-3007
akv@cacs.usl.edu                                         (318) 232-5502 [H]



