MTS 8: LISP and SLIP in MTS
June 1976
The attempt to make each volume complete in itself and reasonably
independent of others in the series naturally results in a certain
amount of repetition. Public file descriptions, for example, may appear
in more than one volume. However, this arrangement permits the user to
buy only those volumes that serve his or her immediate needs.
Richard A. Salisbury,
General Editor
4

MTS 8: LISP and SLIP in MTS
June 1976
Contents ________
Preface . . . . . . . . . . . . 3 Error Atoms, Error Forms,
and Error Expressions . . . 56
Overview of List-Processing System Error IOARGs . . . . 57
Languages in MTS . . . . . . . 7 (BREAK S) . . . . . . . . 57
(RES N) . . . . . . . . . 58
LISP . . . . . . . . . . . . . 9 (DUMP N SW) . . . . . . 58
Introduction . . . . . . . . 9 (UNEVAL STACKID S) . . . 60
The LISP Language . . . . . . 9 (GETFN FN) . . . . . . . . 61
Atoms, Buffers, and Arrays 9 (DISPLAY STACKID B,F,L
S-Expressions . . . . . . . 12 A) . . . . . . . . . . . 61
The LISP Interpreter . . . 14 (MODIFY STACKID B,F A
Basic LISP Functions . . . 16 S) . . . . . . . . . . . . 62
N-Type Functions in LISP . 29 (ERR S) . . . . . . . . . . 63
More About Functions . . . . 35 (STEP N1 N2) . . . . . . 63
LAMBDA-Expressions . . . . 35 (TRACE A1...AN) and
The No-Spread Form of a (UNTRACE A1...AN) . . . . . 63
LAMBDA . . . . . . . . . . 36 Error Codes . . . . . . . . 64
Other Forms of Special features . . . . . . 66
LAMBDA-Expressions . . . . 37 The STATUS Function . . . . 66
Named LAMBDA-Expressions The OBJECT LIST . . . . . . 73
(LABEL-Expressions) . . . . 38 The Parameter List . . . . 74
Accessing Defined The TIMER Function:
Functions . . . . . . . . . 38 (TIMER ID SW) . . . . . . . 75
Defining New Functions in The Garbage Collector . . . 76
LISP . . . . . . . . . . . 39 (CHECKPOINT A S) and
BUG . . . . . . . . . . . . 41 (RESTORE A) . . . . . . . . 76
Arrays . . . . . . . . . . 42 Automatic Restoration of
Calling External Routines LISP Functions . . . . . . 78
from LISP . . . . . . . . . 43 Creating a LISP Library . . 78
A Note on Recursion in Direct Memory
Function Specification . . 45 Modification: (STATUS (0
Input/Output in LISP . . . . 46 N A)) . . . . . . . . . . . 79
Default I/O Operations . . 46 (LTR S SW) . . . . . . . . 79
I/O Data Types . . . . . . 47 (MTS A) . . . . . . . . . 80
Buffer and File Prefix The Transport System . . . 80
Characters . . . . . . . . 49 The LISP Compiler:
Buffer Overflow (COMPILE A1...AN) . . . . . 82
Interception . . . . . . . 50 Other Special Features . . 87
End-of-File Processing . . 50
READMACRO and PRINTMACRO The LISP Editor . . . . . . . . 89
Functions . . . . . . . . . 51 Introduction . . . . . . . . 89
Description of Optional Commands that Print the
I/O Parameters . . . . . . 53 Current Expression . . . . . 90
Input/Output Functions . . 54 Commands that Specify the
Error Recovery and Current Expression . . . . . 91
Debugging Procedures . . . . 56 Commands that Modify the
Current Expression . . . . . 94
5
Previous Page Next Page