Need C language Description

Jos Vos jos at philapd.UUCP
Mon Aug 1 23:27:41 AEST 1988


In article <12707 at agate.BERKELEY.EDU> cotner at bosco.berkeley.edu writes:
>A friend of mine would like to write a small C compiler for a project.
>(The rest of the class are writing Pascal compilers).  However, he needs
>a formal language description of C, and so far neither one of us have been 
>able to find one.

In "C: A Reference Manual", written by Harbison & Steele, a LALR(1) grammar
is included in an appendix. You *should* be able to feed it to YACC, for
instance, but I have never tried it!

Of course (?), this is only a *syntactic* description, not a *semantic* one.

-- 
#  Jos Vos                             #  Internet  jos at philapd.UUCP  #
#  Philips TDS, Dept SSP               #                              #
#  P.O. Box 245                        #  UUCP  ..!mcvax!philapd!jos  #
#  7300 AE Apeldoorn, The Netherlands  #  Phone        +31 55 433181  #



More information about the Comp.lang.c mailing list