2013-04-28 53 views
0

我想從REPL或僅從shell讀取clisp函數的幫助。 我發現這裏面給這個(符號的plist)功能:CLISP手冊

(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函數的文檔像shell中的man?

回答

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)) 
0

在這裏,這可能是有趣的。下面是一個片段:

[功能]比特的比特陣列&其餘標SBIT簡單位陣列&其餘 標

位酷似AREF,但需要的比特的陣列,即,一個類型爲(陣列位)的 。結果將始終爲0或1.sbit與 位相似,但還要求第一個參數爲簡單的 數組(請參閱第2.5節)。請注意,bit和sbit與char和char不同,它允許第一個參數是任何級別的數組。

Bit Function clisp

另外,this是鏈接到CLISP手冊的相應部分(一個或多個)一個巨大的索引。

+0

感謝您的鏈接,但我想從shell運行此幫助,如果可能的話。 – edem 2013-04-28 15:02:25

+2

Common Lisp語言被ANSI Common Lisp標準取代。使用Hyperspec或類似的。 – 2013-04-28 15:18:08