This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++ "with" keyword


> 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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]