Thank you for release 10.3, Lutz.
I finished translating manual of v.10.3 into Japanese.
http://cid-23a9a25e1aec3626.skydrive.li ... -10300.zip
By the Way, the version of
Code Patterns in newLISP is v10.2.
It might be scheduled to be updated.
Then, I have some suggestion.
'push' and 'pop'
(pop L V) → '
v
(pop L V) → '
x
Branching
In the text,
exp-true and
exp-false are used.
But in exapmle, In the text,
true-expr and
false-expr are used.
And,
cond works like the multiple condition form of if but each part of condition-i exp-true-i must be braced in parentheses:
(cond
(condition-1 body-true-1 )
(condition-2 body-true-2 )
...
(condition-n body-true-n )
(true body-true)
)
Ecah body-true contains one or more expressions.
But, it might not be necessary.
Association lists
(lookup "John Doe" Persons -1) →
make
(lookup "John Doe" Persons -1) →
male
(assoc '("Anne"
'address) persons) → (address (country "USA") (city "New York"))
(assoc '("Anne"
address) persons) → (address (country "USA") (city "New York"))
Stateless server with inetd
newlisp -c -d 4711 &
amp;
newlisp -c -d 4711 &
newlisp myprog.lsp -c -d 4711 &
amp;
newlisp myprog.lsp -c -d 4711 &
newlisp myprog.lsp -c -w /home/node25 -d 4711 &
amp;
newlisp myprog.lsp -c -w /home/node25 -d 4711 &
Test the server with telnet
Multi-line expressions can be entered by enclosing them in [cmd], [/cmd] tags, each tag on a separate line. Both the opening and closing tags should be on separate lines.
It is for
Test with netcat on UNIX , maybe.
I am translating Code Patterns into Japanese, but I am sorry that it is not finished yet.