🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6367

C syntax

#6367
From: quale
Date: Thu, 30 Mar 1989 17:12
14 lines
974 bytes
I didn't plan to post this, but since noone has brought it up yet, ...

The syntax given in Kernighan and Ritchie is incorrect.  As they themselves
state it is not intended to be a rigorous definition of C syntax, but rather
a rough guide.  Even so, the syntax they give is broken, and I don't think
there is or ever was a C compiler accepting exactly that language.

An amusing article on C syntax was published in SIGPLAN Notices a few years ago.

I think that the difficulty of writing a yacc parser for C speaks volumes about
the messiness of its syntax, but I'll withhold further comment.

 -- Doug Quale
 quale@uhura.cs.wisc.edu
Technical Details
Message-ID: <2487@puff.cs.wisc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!rutgers!uwvax!puff!quale

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!rutgers!uwvax!puff!quale
From: quale@puff.cs.wisc.edu (quale)
Newsgroups: comp.lang.misc
Subject: C syntax
Keywords: C, syntax
Message-ID: <2487@puff.cs.wisc.edu>
Date: 30 Mar 89 17:12:31 GMT
Distribution: comp
Organization: U of Wisconsin CS Dept
Lines: 14