Article View: cu.slug
Article #459Re: Package Query
From: Luca Pisati
Date: Thu, 03 Jul 1997 00:00
Date: Thu, 03 Jul 1997 00:00
48 lines
2598 bytes
2598 bytes
Craig Lanning wrote: > > I am trying to get a Lisp to C compiler (CLiCC) to compile and run on a > Symbolics. The problem is that CLiCC needs to have its own version of > the LISP package and Genera will not allow the standard LISP package to > be renamed. That is not completely true. Genera supports at the same time ZLisp, Symbolics Common Lisp (SCL), Cltl1 and Cltl2. In order to overcome the renaming of the CL package (since it changed from CL to LISP to CL again) they have the nice feature of being able to define a syntax. You can define anew syntax (Zlisp and Cltl2 are a couple of them), in which you can have packages being virtually renamed (or shadowed, or made invisible) inside that syntax). Check the documentation or try to find for the syntax symbol and look for who use it, you should be able to find the syntax defined for cltl2, and use it as a template in order to define your own syntax. > What I need is a way to dynamically bind everything about the package > system while CLiCC is running. This will allow CLiCC to use all of the > package manipulation functions (e.g. MAKE-PACKAGE, INTERN) while it is > running and be able to clean up by just undoing the dynamic bindings. Syntax will let you achieve this. I used this trick when I started defining my own ANSI CL syntax in a running Genera 8.1 (which doesn't have ANSI), to do some porting directly on the Lisp Machine. > I have poked around in the package system and thought that I could use > the :INVISIBLE option to GLOBAL:MAKE-PACKAGE to make packages outside > the package system. Every time I tried to collect them together and use > them as the package system the syntax stuff kept tripping me up. > > Has anyone else tried anything like this? > > For more information about the Apply project and CLiCC, see: > http://www.informatik.uni-kiel.de/~wg/apply.html > > Craig Lanning <CLanning@scra.org> > Northrop Grumman > Data Systems and Services Division > North Charleston, SC
Technical Details
Message-ID:
<867990310.19985@news.Colorado.EDU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<19970703141614.4.CLANNING@RIGEL.scra.org>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10077e,68868e7afeb55206 X-Google-Attributes: gid10077e,public From: Luca Pisati <parchita@ix.nichimen.com> Subject: Re: Package Query Date: 1997/07/03 Message-ID: <867990310.19985@news.Colorado.EDU> X-Deja-AN: 254642417 Distribution: cu Sender: daemon@lace.colorado.edu References: <19970703141614.4.CLANNING@RIGEL.scra.org> X-Note1: message-id generated by recnews X-Note2: mail msgid was <33BC7887.5FAC@ix.nichimen.com> Organization: University of Colorado at Boulder Newsgroups: cu.slug