home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!max.fiu.edu!serss0!feathers
- From: feathers@serss0 (Michael Feathers)
- Subject: Re: Criticisms Wanted:Callbacks&Runtime methods
- Organization: Florida International University, Miami
- Date: Sun, 13 Dec 1992 05:12:59 GMT
- Message-ID: <Bz6MHn.Apw@fiu.edu>
- Keywords: callbacks C++ Runtime methods
- References: <1gc6fhINN6nr@tamsun.tamu.edu> <1992Dec12.124839.11240@netcom.com>
- Sender: news@fiu.edu (Usenet Administrator)
- Lines: 44
-
- In article <1992Dec12.124839.11240@netcom.com> erc@netcom.com (Eric Smith) writes:
- >I've got that on the back burner. My parser, which contains its own
- >preprocessor, already has some extra macro features I'm using, and I'm
- >planning to release a very powerful extended C++ preprocessor in the
- >future, which will evolve from it. I'm using it right now as a
- >preprocessor even with C++ compilers that don't have a separate
- >preprocessor, just adding mine as an extra initial stage in the
- >makefile. But it doesn't take much extra time because doing the
- >preprocessing in advance reduces the workload on the C++ compiler,
- >thereby making it faster.
-
- Sounds great. As a little thought experiment for myself, I've been thinking
- of designing a C++ like language which maintains the functionality of C++
- while simplifying the syntax considerably. In the process, I've made a
- wish list for a preprocessor.
-
- Unlike many people, I do not regard the preprocessor as an evil entity that is
- used to hide ugly code and introduce bugs. In fact, I think that the C and
- C++ preprocessors are invaluable when using C and C++ as target languages in
- a compiler.
-
-
- Here are some things that I've always wanted to add to a preprocessor. Perhaps
- some day I will.
-
- 1. A #system directive which executes the text remaining on the line in the
- operating system shell that the preprocessor is running under. Some may
- say that this would cause portability concerns, but the include mechanism
- could be used to configure for different Operating systems. The
- benefits would be numerous. The preprocessor could be used to automate
- program construction, etc.,.
-
- #system echo __FILE__ __LINE__ // Show people where the processing is now
-
- 2. Grammatical production based macros which use the names of C++ tokens and
- regular expressions as atoms.
-
- To keep things simple, the productions could be restricted to LL(1).
-
-
- -Mike (doesn't ask for much)
-
-
-
-