From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9304 invoked by alias); 5 Jan 2003 18:24:54 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 9297 invoked from network); 5 Jan 2003 18:24:53 -0000 Received: from unknown (HELO nile.gnat.com) (205.232.38.5) by 209.249.29.67 with SMTP; 5 Jan 2003 18:24:53 -0000 Received: by nile.gnat.com (Postfix, from userid 338) id B9C4FF2D8F; Sun, 5 Jan 2003 13:24:41 -0500 (EST) To: dewar@gnat.com, jsm28@cam.ac.uk Subject: Re: c++ "with" keyword Cc: gcc@gcc.gnu.org Message-Id: <20030105182441.B9C4FF2D8F@nile.gnat.com> Date: Sun, 05 Jan 2003 18:41:00 -0000 From: dewar@gnat.com (Robert Dewar) X-SW-Source: 2003-01/txt/msg00226.txt.bz2 > As does the source code to the Bourne shell (V7 Unix is now free software > (BSD with advertising clause), freed by Caldera). > > http://minnie.tuhs.org/UnixTree/V7/usr/src/cmd/sh/ > > (especially mac.h for the macros converting this other language into C). Gosh that's really naughty :-) [using the C macro feature to subvert the syntax]. I wish I had known this when my students were writing bootstrapping compilers, still I suppose it was a good excercise for them to create macro sets of their own (about half bootstrapped using the A68 to C translator, the other half by writing similar sets of C macros). It's quite fun to look at that code, but it must drive some C programmers nuts!