Predicates Common Lisp

Do you know where I can get the predicate source in Common Lisp? (The content of the predicate, if you prefer.) For example, the source code is setq, string =, etc.

Thanks!

+8
lisp common-lisp predicate
source share
3 answers

Common Lisp development environments typically provide a way to search for definitions in a source file.

Alternatively, FUNCTION-LAMBDA-EXPRESSION can restore the source code of the predicate and other functions if the Lisp environment is configured to save definitions.

You can also search the open source Lisp files for Lisp. For example, in Clozure CL, setq is defined in the / nx 1.lisp compiler file. The tip is to place a space before the search word to get around matches such as (setq .

+4
source share

For at least SBCL, SLIME can search for definitions by pressing β€œM-.”, However you need to compile SBCL from the source for this to work, since the path to the source definitions is built into the binary and if you use a binary distribution, you probably won’t have the source files in the same place.

+1
source share

SETQ is not a predicate. This is not even a function, so you could not find it through the IDE. STRING = is a predicate and function, so it works better.

Do you mean "primitive"? for the "predicate"?

0
source share

All Articles