LISTING FOR >dumps>old_dumps>lisp_stuff>work>lisp_backquote_ COMPILED BY Multics LISP Compiler, Version 2.8x, February 27, 1980 ON 02/27/80 2139.1 mst Wed IN BEHALF OF Martinson.SysMaint.a ;;; ;;; Simple backquote package for Multics MacLisp ;;; by Alan Bawden ;;; Incorporated via backquote.incl.lisp 10/9/79 by BSG ;;; ;;; ;;;This is intended to be LOADED into the ;;;compiler or interpreter environment, not %included lexically. ;;; ;;;The compiled version is used in production. (setsyntax '/` 'macro 'backquote-macro) (setsyntax '/, 'macro 'comma-macro) (declare (special *backquote-count*)) (setq *backquote-count* 0) (defun backquote-macro () ((lambda (*backquote-count*) (backquotify (read))) (1+ *backquote-count*))) (defun comma-macro () ((lambda (*backquote-count*) (and (< *backquote-count* 0) (error ";Backquote usage error:! Comma not inside a backquote. Level: " *backquote-count* 'fail-act)) ((lambda (ch) (cond ((= ch 100) (tyi) (cons '/,/@ (read))) (t (cons '/, (read))))) (tyipeek))) (1- *backquote-count*))) (defun backquotify (x) (cond ((atom x) (list 'quote x)) ((eq (car x) '/,) (cdr x)) ((eq (car x) '/,/@) (error ";Backquote error! Comma-atsign inconsistent: " x 'fail-act)) ((and (not (atom (car x))) (eq (caar x) '/,/@)) (list 'append (cdar x) (backquotify (cdr x)))) (t ((lambda (a d) (cond ((and (eq (car a) 'quote) (eq (car d) 'quote)) (list 'quote (cons (cadr a) (cadr d)))) (t (list 'cons a d)))) (backquotify (car x)) (backquotify (cdr x)))))) Functions Defined Name Offset Offset Name backquote-macro 0 0 backquote-macro backquotify 74 17 comma-macro comma-macro 17 74 backquotify Functions Referenced backquotify read tyipeek error tyi ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved