我想从REPL或shell中读取clisp函数的帮助。 我找到了(符号 - plist)函数,它给出了这个:
(symbol-plist 'bit)
(SYSTEM::TYPE-SYMBOL #<COMPILED-FUNCTION SYSTEM::TYPE-SYMBOL-BIT>
SYSTEM::SETF-EXPANDER SYSTEM::STORE SYSTEM::DOC
(CLHS "Body/any_bit.html" SYSTEM::FILE
((DEFSETF #P"/build/buildd/clisp-2.49/debian/build/places.fas" 941 941))))
但为了理解(位)是如何工作的,它不是那么有用的信息?
那么clisp函数的任何手册和文档都有类似man in shell的内容吗?
答案 0 :(得分:1)
[7]> (describe 'bit)
BIT is the symbol BIT, lies in #<PACKAGE COMMON-LISP>, is accessible in 9 packages CLOS, COMMON-LISP, COMMON-LISP-USER, EXPORTING, EXT,
POSIX, REGEXP, SCREEN, SYSTEM, names a function, names a type, has 3 properties SYSTEM::TYPE-SYMBOL, SYSTEM::SETF-EXPANDER, SYSTEM::DOC.
ANSI-CL Documentation is at
"http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/any_bit.html"
For more information, evaluate (SYMBOL-PLIST 'BIT).
#<PACKAGE COMMON-LISP> is the package named COMMON-LISP. It has 2 nicknames LISP, CL.
It imports the external symbols of 1 package CLOS and exports 978 symbols to 8 packages REGEXP, POSIX, EXPORTING, SCREEN, CLOS,
COMMON-LISP-USER, EXT, SYSTEM.
#<SYSTEM-FUNCTION BIT> is a built-in system function.
Argument list: (#:ARG0 &REST SYSTEM::OTHER-ARGS)
For more information, evaluate (DISASSEMBLE #'BIT).
Documentation:
CLHS:
"Body/any_bit.html"
SYSTEM::FILE:
((DEFSETF #P"/Lisp/clisp/clisp-2.49/src/places.fas" 941 941))
答案 1 :(得分:0)
在这里,这可能是有意义的。以下是简短摘录:
[功能]位位阵列&amp; rest下标sbit simple-bit-array&amp; rest 标
bit与aref完全相同,但需要一个位数组,即一个 类型(数组位)。结果将始终为0或1.sbit就像 但另外要求第一个参数是简单的 数组(见2.5节)。注意bit和sbit,不像char和 schar,允许第一个参数成为任何等级的数组。
此外,this是指向clisp手册相应部分的链接的巨大索引。