0

我想从 REPL 或仅从 shell 阅读 clisp 函数的帮助。我找到了(symbol-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))))

但它不是那么有用的信息,以了解 (bit) 是如何工作的?

那么有没有关于 clisp 函数的手册和文档,比如 man in shell?

4

2 回答 2

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))
于 2013-04-28T15:20:42.580 回答
0

在这里,这可能很有趣。下面是一个简短的摘录:

[功能] bit 位数组 &rest 下标 sbit 简单位数组 &rest 下标

bit 与 aref 完全相同,但需要一个位数组,即类型之一(数组位)。结果将始终为 0 或 1。 sbit 与 bit 类似,但还要求第一个参数是一个简单的数组(参见第 2.5 节)。请注意,与 char 和 schar 不同,bit 和 sbit 允许第一个参数是任意等级的数组。

位功能夹

此外,是指向 clisp 手册相应部分的链接的巨大索引。

于 2013-04-28T14:56:26.400 回答