home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: Language extension
- Message-ID: <1992Aug15.153009.11771@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- References: <memo.575428@cix.compulink.co.uk>
- Date: Sat, 15 Aug 1992 15:30:09 GMT
- Lines: 34
-
- In article <memo.575428@cix.compulink.co.uk> vadim@cix.compulink.co.uk writes:
- >
- >While thinking about various RTTI, XRTTI and GC proposals
- >for C++ i've stumbled on following idea:
- >Many of the modern computer programs such as communication programs,
- >word processors, CAD systems, e-mail systems provides a means to tailor
- >them to match user needs by offering some kind of script language.
- >It just occured that the same mechanism could be provided in the
- >compiler. A scripting language which could access and manipulate
- >compiler data structures. Such a thing will give almost unlimited
- >language extension possibilites and that WITHOUT need to change the
- >language itself.
- >
- >With souch a feauture RTTI, EXCEPTION HANDLING, GC, PRE- and POST-
- >method conditions, class invariants, all become
- >possible without modifying the language. The stadards commetee will
- >simply have to agree on library interface to all these features.
- >
-
- I started writing c++front translator last week.
- Initialially it will translate C++ into C++ via hand written
- parser (written in C++). It will be upgraded to support
- tagged pointers, operator., etc by hand modification of the compiler
- source. Extensions to translation to C may be interesting.
- Bootstrapping to extended C++ will be tedious. But its impossible
- to propose a major language extension without testing it
- via an experimental compiler.
-
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-