Lisp
ANSI Common Lispã§ã¯ãã©ã¤ãã©ãªã®ãã©ã¼ãããã«ã¤ãã¦ãã¾ãã¡ããã¨ããä»æ§ãåå¨ãã¾ããã å½ç¶ãã©ã¤ãã©ãªãæ±ããªãã®ã¯ä¸ä¾¿æ¥µã¾ããªããã¨ã§ãããããã®ç¹ãã«ãã¼ããããã®ã·ã¹ãã ãåå¨ãã¾ãã REQUIRE, PROVIDE ç¾å¨éæ¨å¥¨ã®ãANSI Commoâ¦
Clozure CLã®Lispã®é¨åãã³ã³ãã¤ã«ãã¦ãããããããããã¦èµ·åã¨ããæ©ãããã ? (ccl:compile-ccl) ãã£ããããæ°ã®20çªç®ãè¨ç®ãã¦ãã¹ã #!/bin/sh #|-*- mode:lisp -*-|# #| <Put a one-line description here> exec ros -Q -- $0 "$@" |# (progn ;;init forms (ros:ensure-asdf) ;</put>â¦
ANSI Common Lispã§ã¯shebangã®åå¨ã¯èæ ®ãããªãã ããããRoswell scriptã®ãããã°ãSlimeã§ãã¦ããã¨ãshebangã§ãªã¼ãã¨ã©ã¼ãèµ·ãã¦ãã©ããªãã ãã®åé¿æ¹æ³ã Roswellã¯èµ·åæã«ã$HOME/.roswell/init.lispãå®è¡ããã ã¾ããros:ignore-shebanâ¦
ï¼2017-3-11æ´æ°ï¼Roswellã§Common Lispç°å¢ãã»ããã¢ãããã - ã®ã¼ã¯ãã©ãã®æ¥è¨å¸³ Roswellã¨ã¯ (ãã£ããã¨) Common Lispã®å¦çç³»ãQuicklispã®ã¤ã³ã¹ãã¼ã«ãå¦çç³»ãã¨ã®ãªãã·ã§ã³ã®éãã®å¸åãªã©ãè¡ãããã便å©ãªãã¼ã«ã Common Lisperãªã使â¦
Ros scriptã§ã©ã¤ãã²ã¼ã æ¸ããã lifegame.rosã«å®è¡å¯è½æ¨©éãä¸ãããã¨ã./lifegame.rosã§èµ·åããã Enterãã¼ãæ¼ãã¨ä¸ä¸ä»£é²ãã æ£æ´æ°ãå ¥åããã¨ããã®åãã¢ãã¡ã¼ã·ã§ã³ä»ãã§é²ãã ./lifegame.ros *width* *height* *wait-time*
ã¾ããiotaãå®ç¾©ããã ç°¡æ½ã«ããããããªãã·ã§ã³å¼æ°ã¯ä½¿ããªãã (defun iota (limit seed step) (if (> seed limit) nil (cons seed (iota limit (+ seed step) step)))) (> seed limit)ãä¸è¬åãã¦ãçµäºæ¡ä»¶ãæå®ã§ããããå¤æ´ããã (defun funcâ¦
ããã²ã¨ã¤ã®Schemeå ¥é 16. ç¶ç¶ãåçµããã ãç¶ç¶ãã¯ãè¨ç®ã«ããã¦å¿ ãåå¨ããã ããããæ示çã«æ±ããããã¨ãå°ãªãã ä¾ãã°ã (* 3 (+ 1 2)) ã®ãããªè¨ç®ãããã¨ãã(+ 1 2)ãè©ä¾¡ããå¾ã®æ®ãã®è¨ç®ã¯ã(* 3 _)ã§ããã ãã®é¨åãç¶ç¶ã¨å¼â¦
åé¡ã®ã³ã¼ãããã (defun read-with-prompt () (princ "> ") (read)) CLISPã§ã¯ãã¡ãã¨åãã [1]> (read-with-prompt) > hoge hoge SBCLã§ã¯ãããªãã * (read-with-prompt) hoge > hoge princãããå ã«readãå®è¡ããã¦ãã¾ãã ãã®åé¡ã¯ãSBCLã®æâ¦
(declaim (inline function-name)) declaimã¯ãã¯ãã å宣è¨ããããã¤ã³ã©ã¤ã³å±éããããã³ã¼ãã®æé©åã«ä½¿ãããã http://cl.cddddr.org/index.cgi?%e6%9c%80%e9%81%a9%e5%8c%96#H-1yksz98dk7cep ããã詳ããã
Land of Lispä½è : M.D. ConradBarski,Conrad Barski,å·åå²æåºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã¸ã£ãã³çºå£²æ¥: 2013/02/23ã¡ãã£ã¢: 大åæ¬è³¼å ¥: 1人 ã¯ãªãã¯: 18åãã®ååãå«ãããã° (19件) ãè¦ã ãããè²·ã£ãã 表ç´ã«ããç·è²ã®æªç©ã¯Lispã¨ã¤ãªã¢ã³ã¨â¦