类似Lisp的脚本语言 newLISP

openkk 12年前
     <p>newLISP是一个类似Lisp语言的、用于一般用途的脚本语言。它具有 LISP 语言所有的魔力,但更容易学习和使用。 newLISP是友好的,快速和简小的。大部分您需要的功能都将已经内置。<br /> <a href="/misc/goto?guid=4959500130183901704"><img border="0" alt="类似Lisp的脚本语言 newLISP" src="https://simg.open-open.com/show/c19a24deda93c4caef903a4afdd4149f.jpg" width="86" height="86" /></a> </p>    <p>下面是一段示例代码:</p>    <pre class="brush:cpp; toolbar: true; auto-links: false;">(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) ))</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1325314290702" target="_blank">http://www.open-open.com/lib/view/home/1325314290702</a></p>    <p></p>