picolisp

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/picolisp.git/
Log | Files | Refs | README | LICENSE

commit 1705a6bb39be1eb4ba419e2b0d6b01908a4a9072
parent fb71bebdd1c0c1f1a0efbff704dd58e3b775280f
Author: Alexander Burger <abu@software-lab.de>
Date:   Fri, 29 Apr 2011 12:17:58 +0200

Global vs. local invocation (./p -> ./pil <-> pil)
Diffstat:
Mdoc/app.html | 14+++++++-------
Mdoc/hello.l | 2+-
Mdoc/ref.html | 6+++---
Mdoc/refA.html | 4++--
Mdoc/refH.html | 2+-
Mdoc/refO.html | 2+-
Mdoc/refR.html | 4++--
Mdoc/refV.html | 2+-
Mdoc/tut.html | 4++--
9 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/doc/app.html b/doc/app.html @@ -169,10 +169,10 @@ browser. You should see an empty page with a single line of text. <h4><a name="how">How does it work?</a></h4> -<p>The above line loads the debugger ('./dbg', which is equivalent to "./p -dbg.l"), the HTTP server code ("lib/http.l"), the XHTML functions -("lib/xhtml.l") and the input form framework ("lib/form.l", it will be needed -later for <a href="#forms">interactive forms</a>). +<p>The above line loads the debugger ('./dbg', which is equivalent to "./pil ++"), the HTTP server code ("lib/http.l"), the XHTML functions ("lib/xhtml.l") +and the input form framework ("lib/form.l", it will be needed later for <a +href="#forms">interactive forms</a>). <p>Then the <code>server</code> function is called with a port number and a default URL. It will listen on that port for incoming HTTP requests in an @@ -292,7 +292,7 @@ resources. function, defined in "lib/http.l" <pre><code> -$ ./p lib/http.l -'pw 12' -bye +$ ./pil lib/http.l -'pw 12' -bye </code></pre> <p>Please execute this command. @@ -802,7 +802,7 @@ no other browser requests arrive within a default timeout period of 5 minutes. as 'dbg' but with a 'p', and with <code>-wait</code> <pre><code> -$ ./p lib/http.l lib/xhtml.l lib/form.l -'server 8080 "project.l"' -wait +$ ./pil lib/http.l lib/xhtml.l lib/form.l -'server 8080 "project.l"' -wait </code></pre> <p>In that way, no command line prompt appears when a client connects. @@ -2184,7 +2184,7 @@ $ ./dbg app/main.l -main -go <p>or in (non-debug) production mode <pre><code> -$ ./p app/main.l -main -go -wait +$ ./pil app/main.l -main -go -wait </code></pre> <p>and go to '<code><a diff --git a/doc/hello.l b/doc/hello.l @@ -1,4 +1,4 @@ -(load "lib/xhtml.l") +(load "@lib/xhtml.l") (html 0 "Hello" NIL NIL (<h3> NIL "Hello world") diff --git a/doc/ref.html b/doc/ref.html @@ -543,7 +543,7 @@ file "myProject.l" and your startup function is <code>main</code>, your invocation would look like: <pre><code> -$ ./pil myProject.l -main +$ pil myProject.l -main </code></pre> <p>For interactive development it is recommended to enable debugging mode, to @@ -551,10 +551,10 @@ get the vi-style command line editor, single-stepping, tracing and other debugging utilities. <pre><code> -$ ./pil myProject.l -main + +$ pil myProject.l -main + </code></pre> -<p>This is equivalent to +<p>This is - in a local installation - equivalent to <pre><code> $ ./dbg myProject.l -main diff --git a/doc/refA.html b/doc/refA.html @@ -395,7 +395,7 @@ href="refC.html#cmd">cmd</a></code>, <a href="ref.html#invoc">Invocation</a> and <code><a href="refO.html#opt">opt</a></code>. <pre><code> -$ ./pil -"println 'OK" - abc 123 +$ pil -"println 'OK" - abc 123 + OK : (argv) -> ("abc" "123") @@ -467,7 +467,7 @@ $ ./dbg ? # Start in non-debug mode -$ ./p +$ pil : (de foo (N) ~(assert (>= 90 N 10)) (bar N) ) diff --git a/doc/refH.html b/doc/refH.html @@ -164,7 +164,7 @@ $ cat hello.l &lt;p&gt;Hello!&lt;/p&gt; &lt;p&gt;This is a test.&lt;/p&gt; -$ ./p lib/http.l lib/xhtml.l hello.l +$ pil @lib/http.l @lib/xhtml.l hello.l HTTP/1.0 200 OK Server: PicoLisp Date: Sun, 03 Jun 2007 11:41:27 GMT diff --git a/doc/refO.html b/doc/refO.html @@ -212,7 +212,7 @@ href="ref.html#invoc">Invocation</a> and <code><a href="refA.html#argv">argv</a></code>. <pre><code> -$ ./pil -"de f () (println 'opt (opt))" -f abc -bye +$ pil -"de f () (println 'opt (opt))" -f abc -bye opt "abc" </code></pre> diff --git a/doc/refR.html b/doc/refR.html @@ -194,10 +194,10 @@ console is set to the new state. See also <code><a href="refK.html#key">key</a></code>. <pre><code> -$ ./p +$ pil : (raw) -> NIL -$ ./dbg +$ pil + : (raw) -> T </code></pre> diff --git a/doc/refV.html b/doc/refV.html @@ -92,7 +92,7 @@ additional "JVM" or "C", respectively, separated by a space. When <code>flg</code> is non-NIL, printing is suppressed. <pre><code> -$ ./pil -version +$ pil -version 3.0.1.22 : (version T) -> (3 0 1 22) diff --git a/doc/tut.html b/doc/tut.html @@ -2041,7 +2041,7 @@ minimal example for a plain HTML-GUI in <code><a href="hello.l">doc/hello.l</a></code>. Start the application server as: <pre><code> -$ ./p lib/http.l -'server 8080 "doc/hello.l"' -wait +$ pil @lib/http.l -'server 8080 "doc/hello.l"' -wait </code></pre> <p>Now point your browser to the address '<code><a @@ -2128,7 +2128,7 @@ interactively while it is running. For example, the global variable <p>A production application would be started in a slightly different way: <pre><code> -$ ./p doc/family.l -main -go -wait +$ pil @doc/family.l -main -go -wait </code></pre> <p>In that case, no debug prompt will appear. In both cases, however, two