%% Oh Emacs, this is a -*- Lisp -*- file despite apperance. \documentclass{article} \usepackage{axiom} \title{\File{src/interp/bootfuns.lisp} Pamphlet} \author{Timothy Daly} \begin{document} \maketitle \begin{abstract} \end{abstract} \tableofcontents \eject \section{License} <>= ;; Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd. ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are ;; met: ;; ;; - Redistributions of source code must retain the above copyright ;; notice, this list of conditions and the following disclaimer. ;; ;; - Redistributions in binary form must reproduce the above copyright ;; notice, this list of conditions and the following disclaimer in ;; the documentation and/or other materials provided with the ;; distribution. ;; ;; - Neither the name of The Numerical ALgorithms Group Ltd. nor the ;; names of its contributors may be used to endorse or promote products ;; derived from this software without specific prior written permission. ;; ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS ;; IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED ;; TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A ;; PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER ;; OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, ;; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, ;; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR ;; PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF ;; LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING ;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @ \section{The [[BOOT]] package} Everything in axiom that the user references eventually shows up here. The interpreter and the algebra are run after switching to the boot package (in-package "BOOT") so any symbol that the interpreter or algebra uses has to (cough, cough) appear here. <<*>>= <> (IMPORT-MODULE "sys-constants") (IMPORT-MODULE "sys-globals") @ Note that it is confusing the package \Tool{Axiom}'s compiler and interpreter use is called [[BOOT]]. It should have been [[Spad]], or better yet [[Axiom]]. \section{Portability issues} This section discusses some portability issues known to affect this module. \subsection{[[compiler-let]]} The construct [[compiler-let]] is not part of ANSI Lisp, although it had been described in CLTL. Therefore some Lisp implementations offer it as extensions. <>= #+:clisp (import 'ext:compiler-let) @ <<*>>= ; NAME: Boot Package ; PURPOSE: Provide forward references to Boot Code for functions to be at ; defined at the boot level, but which must be accessible ; not defined at lower levels. (in-package "BOOT") <> (defmacro def-boot-var (p where) `(compiler-let nil (defparameter ,p nil ,where) (export '(,p) "BOOT"))) (defmacro def-boot-val (p val where) `(compiler-let nil (defparameter ,p ,val ,where) (export '(,p) "BOOT"))) ; modemap:== ( (p e) (p e) ... (p e) ) ; modemaplist:= ( modemap ... ) (def-boot-val |$CategoryFrame| '((((|Category| . ((|modemap| (((|Category|) (|Category|)) (T *))))) (|Join| . ((|modemap| (((|Category|) (|Category|) (|Category|) (|Category|)) (T *)) (((|Category|) (|Category|) (|List| |Category|)) (|Category|)) (T *)) ))))) "Compiler>CUtil.boot") (def-boot-val $LISPLIB nil "whether to produce a lisplib or not") (def-boot-var |OptionList| "???") (def-boot-val |$printLoadMsgs| 't "Interpreter>SetVarT.boot") (def-boot-var |$PrintOnly| "Compiler>LispLib.boot") (def-boot-val |$SystemSynonyms| () "list of system defined synonyms") (def-boot-val |$QuickCode| NIL "Controls generation of QREFELT, etc.") (def-boot-val |$QuickLet| NIL "Set to T for no LET tracing.") (def-boot-var |$QuietIfNil| "???") (def-boot-var |$readingFile| "???") (def-boot-var |$reportBottomUpFlag| "Interpreter>SetVarT.boot") (def-boot-var |$reportCoerce| "???") (def-boot-var |$reportCoerceIfTrue| "???") (def-boot-var |$reportCompilation| "???") (def-boot-var |$reportFlag| "Interpreter>SetVars.boot") (def-boot-val |$reportSpadTrace| () "report list of traced functions") (def-boot-var |$resolveFlag| "Interpreter>SetVars.boot") (def-boot-var |$returnMode| "???") (def-boot-var |$scanModeFlag| "???") (def-boot-val |$SetFunctions| nil "checked in SetFunctionSlots") (def-boot-var |$slamFlag| "Interpreter>SetVars.boot") (def-boot-val |$sourceFileTypes| '(SPAD BOOT LISP LISP370 META) "Interpreter>System.boot") (def-boot-val |$spadLibFT| 'LISPLIB "???") @ \eject \begin{thebibliography}{99} \bibitem{1} nothing \end{thebibliography} \end{document}