Topic: C or C++ YACC Grammar


Author: akv@srl03.cacs.usl.edu (Anil Vijendran)
Date: 1995/04/14
Raw View
>>>>> 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]





Author: centauris@aol.com (CentauriS)
Date: 1995/04/09
Raw View
Does anyone know where I can find a YACC compatible grammar for C or C++.
I need to parse some C++ code.

centauris@aol.com