Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Common Lisp Keyword list

Where can I find a list of the common Lisp keywords, that's the list of reserved words used in Common Lisp, words like ash, setf, etc.. It would be nice if the list had the usage of the keywords, anyway, all I can find are some of the keywords scattered around in example programs all over the net. I can't do a search on a keyword unless I already know the keyword, and I cant know the keyword unless it's in a list somewhere.

Thanks

like image 885
user2966456 Avatar asked Dec 06 '22 16:12

user2966456


1 Answers

If by keyword, you mean the language defined operators, functions, and macros, you can get a list of those symbols by doing:

(let (result) 
  (do-external-symbols (s :common-lisp) 
    (push s result)) 
  (sort result #'string<))

(I am not going to showing the full result list of 978 symbols here). You can read about each of them in the CLHS, in particular, check the symbol index.

like image 133
Dirk Avatar answered Jan 16 '23 13:01

Dirk