2 ms·
LispWorks for example has a documented and extensible mechanism to record the locations of definitions: http://www.lispworks.com/documentation/lw80/lw/lw-dspec
by lispm 4y ago
LispWorks for example has a documented and extensible mechanism to record the locations of definitions:
http://www.lispworks.com/documentation/lw80/lw/lw-dspecs-ug.htm http://www.lispworks.com/documentation/lw80/lw/lw-dspecs-ug....
Common Lisp has standard function FUNCTION-LAMBDA-EXPRESSION:
* (defun foo (a)
(my-if (> a 10) 'big 'small))
FOO
* (function-lambda-expression #'foo)
(LAMBDA (A) (BLOCK FOO (MY-IF (> A 10) 'BIG 'SMALL)))
T
FOO