newLisp使用初步
newLISP
newLISP是一個類似Lisp語言的、用于一般用途的腳本語言。它具有 LISP 語言所有的魔力,但更容易學習和使用。 newLISP是友好的,快速和簡小的。大部分您需要的功能都將已經內置。
下面是一段示例代碼:
(command-event (fn (s)
? ? (local (request)
? ? ? ? (if (find "?" s) ; is this a query
? ? ? ? ? ? (begin
? ? ? ? ? ? ? ? (set 'request (first (parse s "?")))
? ? ? ? ? ? ? ? ; discover illegal extension in queries
? ? ? ? ? ? ? ? (if (ends-with request ".exe")?
(set 'request "GET /errorpage.html")
? ? ? ? ? ? ? ? ? ? (set 'request s)))
? ? ? ? ? ? (set 'request s))
? ? ? ? request)
))
入門
安裝;
為何write-line輸出2;
要加空格;
setq;
總不輸出hello world;
原來,write-line returns the number of bytes written.
輸出hello world;
if;
列表;
總結
以上是生活随笔為你收集整理的newLisp使用初步的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: .Net版行号消除器
- 下一篇: ArcGIS License Manag