 |
Parasolid LISP Functions |
|
Contents
[back to top]
B.1 Introduction
This appendix gives a quick reference table summary of the Parasolid LISP functions available in KID.
[back to top]
B.2 Arithmetic operators
|
integer
|
real
|
string
|
list
|
address
|
function
|
nil
|
n-ary
|
plus
|
*
|
*
|
*
|
*
|
|
|
|
*
|
difference
|
*
|
*
|
*
|
*
|
|
|
|
*
|
times
|
*
|
*
|
*
|
*
|
|
|
|
*
|
quotient
|
*
|
*
|
*
|
*
|
|
|
|
*
|
and
|
|
|
|
*
|
|
|
*
|
*
|
or
|
|
|
|
*
|
|
|
*
|
*
|
band
|
*
|
|
|
|
|
|
|
*
|
bor
|
*
|
|
|
|
|
|
|
*
|
eq
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
equal
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
greaterp
|
*
|
*
|
*
|
|
*
|
*
|
*
|
*
|
lessp
|
*
|
*
|
*
|
|
*
|
*
|
*
|
*
|
Also:
add1, sub1
[back to top]
B.3 Environment
|
new
|
overwrite
|
set
|
global
|
local/global
|
setq
|
global
|
local/global
|
defun
|
global
|
local/global
|
defproc
|
c
|
c
|
trace
|
trace
|
|
untrace
|
trace
|
|
oblist
|
global
|
|
Association & property lists:
assoc, iassoc, plist, get, put, remprop
[back to top]
B.4 Monadic operators
|
integer
|
real
|
string
|
list
|
address
|
function
|
nil
|
atom
|
*
|
*
|
*
|
*
|
*
|
*
|
|
null
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
not
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
bnot
|
*
|
|
|
|
|
|
|
abs
|
*
|
*
|
*
|
*
|
|
|
*
|
minus
|
*
|
*
|
*
|
*
|
|
|
|
truncate
|
*
|
*
|
*
|
|
|
|
|
character
|
*
|
*
|
|
|
|
|
|
chars
|
*
|
*
|
*
|
|
*
|
*
|
|
ordinal
|
*
|
*
|
*
|
|
*
|
*
|
|
explode
|
*
|
*
|
*
|
|
*
|
*
|
|
implode
|
|
|
|
*
|
|
|
|
Also:
charp, subrp, fsubrp, listp, numberp, csubrp, cvarp, onep, zerop, minusp
[back to top]
B.5 List operators
|
atom
|
list
|
nil
|
destructive
|
index
|
car/cdr
|
|
*
|
|
|
|
cons
|
*
|
|
*
|
|
|
list
|
*
|
*
|
*
|
|
|
rplaca/d
|
|
*
|
|
*
|
|
last/-cdr
|
|
*
|
|
|
|
reverse
|
|
*
|
|
|
|
append
|
|
*
|
*
|
|
|
flatten
|
|
*
|
|
|
|
element
|
|
*
|
*
|
|
*
|
member
|
|
*
|
*
|
|
*
|
delete
|
|
*
|
*
|
|
|
subst
|
|
*
|
*
|
|
|
replicate
|
*
|
*
|
*
|
|
|
[back to top]
B.6 Evaluation
Function
|
Notes
|
errorset
|
|
eval/apply
|
|
quote/'
|
|
progn
|
n-ary body
|
cond
|
n-ary body: condition-(n-ary)expr. pairs
|
map/mapc
|
|
loop
|
n-ary body
|
until/while
|
n-ary body executed when condition true/false
|
catch/throw
|
label, expr.
|
[back to top]
B.7 I/O operators
|
filehandle
|
terminal
|
prlist
|
carr. return
|
punctuation
|
open
|
*
|
|
|
|
|
close
|
*
|
|
|
|
|
eof
|
*
|
|
|
|
|
getchar
|
(*)
|
def
|
|
|
|
readline
|
(*)
|
def
|
|
|
|
read
|
(*)
|
def
|
|
|
|
write0
|
*
|
|
*
|
|
*
|
write
|
*
|
|
*
|
*
|
|
prin
|
|
*
|
*
|
|
*
|
princ
|
|
*
|
*
|
|
|
print
|
|
*
|
*
|
*
|
*
|
printc
|
|
*
|
*
|
*
|
|
vdu
|
|
*
|
*
|
|
|
sprint
|
(*)
|
def
|
*
|
*
|
|
error
|
|
*
|
*
|
*
|
|
[back to top]
B.8 Time operators
|
time&date
|
cpu-time
|
resettable
|
time/ctime/gctime
|
|
*
|
*
|
clock
|
*
|
|
|
reset
|
|
|
|
[back to top]
B.9 System functions
|
info
|
set
|
exit
|
re-run
|
operating-system
|
help
|
*
|
|
|
|
|
quit
|
|
|
*
|
|
|
load
|
|
|
|
*
|
|
messon/off
|
*
|
*
|
|
|
|
edit/sed
|
|
|
|
|
|
journal
|
*
|
*
|
|
|
|
*
|
|
|
|
|
*
|
!
|
escape character
|
--
|
end-of-line comment, skip fold
|
".."
|
(quote ..)
|
[back to top]
B.10 System variables
Special symbols:
nil, undefined, t, lambda
|
value
|
use
|
f
|
nil
|
|
lpar/rpar
|
"(" / ")"
|
|
cr
|
newline
|
|
Also:
blank, period, dollar
|
value
|
use
|
special
|
|
sprint: inhibit line breaks
|
decimalwidth
|
|
io, ..: significant digits for real numbers
|
linewidth
|
|
sprint: length of output line
|
whitespace
|
|
times: token-ise string
|
[back to top]