Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!inuxc!iuvax!pur-ee!uiucdcs!uxc.cso.uiuc.edu!uiucuxf!jmj714
From: jmj714@uiucuxf.UUCP
Newsgroups: comp.lang.c
Subject: I need to parse C
Message-ID: <47600009@uiucuxf>
Date: Tue, 24-Nov-87 17:29:00 EST
Article-I.D.: uiucuxf.47600009
Posted: Tue Nov 24 17:29:00 1987
Date-Received: Sun, 29-Nov-87 06:41:58 EST
Lines: 13
Nf-ID: #N:uiucuxf:47600009:000:671
Nf-From: uiucuxf.cso.uiuc.edu!jmj714    Nov 24 16:29:00 1987


  I am engaged in an undergraduate computer science independent study project,
in which a clever version of MAKE is being developed.  As a part of the work,
I need to parse C source code, and am having trouble finding a formal grammar
for C, from which I can work.  I will probably use YACC, but hope to end up
with machine-independent code (how the usage of YACC will affect this, I do not
know).
  Could anyone suggest a source for such a formal C grammar, a YACC (& LEX?)
grammar for C, or offer any pertinent advice?  I already can tokenize C source,
but have not been able to parse such a tokenized representation.

      John Jozwiak
      jmj714@uxf.cso.uiuc.edu