[comp.compilers] grammar or interpreter for C?

jamison@hobbes.Corp.Sun.COM (Jamison Gray) (03/20/90)

Howdy!  I'd like to get my hands on source code for either of the following:

* An interpreter for C, or a subset that includes handling of
  structure elements and pointers - things like *, &, ->, ".", etc.

* A parser and scanner for C, preferably in yacc & lex form. 
  Even just the grammar without the code for the actions would
  be helpful, if that's all I can get -- especially if it does
  all the precedence specification correctly.  

Pointers to books or other sources for either of these
are also welcome.  Thanks!

					-- Jamie Gray

Jamie Gray, Sun Microsystems    "Broken pipes; broken tools;
Mountain View, CA                People bendin' broken rules"
Internet:  jamison@Sun.COM            - Bob Dylan, "Everything's Broken"
[I've sent him the C grammar that I give away.  Anyone passing out
C interpreters?  -John]
-- 
Send compilers articles to compilers@esegue.segue.boston.ma.us
{spdcc | ima | lotus}!esegue.  Meta-mail to compilers-request@esegue.
Please send responses to the author of the message, not the poster.

charlie@genrad.genrad.COM (Charlie D. Havener) (03/22/90)

See Austin Code Works ad in many magazines such as the C User's Journal.
Buy 'Quincy' for $60. A C interpreter with source code. It uses
recursive descent parsing. Has a user interface/debugger for
PC Clones.  

A C grammar has been posted to the Usenet many times. I wrote
an article for the C User's Journal, Oct '89 (I think) called
a C to C++ Migrator tool. It has the C grammer and lexer as part of
it ( also shows how to handle typedefs more or less ). Source floppy
available from the Journal for $8. Floppy #296, call 913-841-1631
-- 
Send compilers articles to compilers@esegue.segue.boston.ma.us
{spdcc | ima | lotus}!esegue.  Meta-mail to compilers-request@esegue.
Please send responses to the author of the message, not the poster.