commit bc7d411ec5d3cd5764a43d0ee262a6e1801e5c1f
parent bf470bab8139f5eb20f222f7e58985fa03b3ad36
Author: Alexander Burger <abu@software-lab.de>
Date: Sat, 14 Jan 2012 10:46:59 +0100
Minor doc additions
Diffstat:
2 files changed, 44 insertions(+), 9 deletions(-)
diff --git a/doc/ref.html b/doc/ref.html
@@ -242,9 +242,17 @@ to store the number's binary representation.
Number
|
V
- +-----+-----+ +-----+-----+ +-----+-----+
- |'DIG'| ---+---> |'DIG'| ---+---> |'DIG'| / |
- +-----+-----+ +-----+-----+ +-----+-----+
+ +-----+-----+
+ | DIG | | |
+ +-----+--+--+
+ |
+ V
+ +-----+-----+
+ | DIG | | |
+ +-----+--+--+
+ |
+ V
+ ...
</code></pre>
<p>The first cell holds the least significant digit. The least significant bit
@@ -441,8 +449,26 @@ specified at creation time.
<h4><a name="lst">Lists</a></h4>
<p>A list is a sequence of one or more cells, holding numbers, symbols, or
-lists. Lists are used in PicoLisp to emulate composite data structures like
-arrays, trees, stacks or queues.
+lists.
+
+<pre><code>
+ |
+ V
+ +-----+-----+
+ | any | | |
+ +-----+--+--+
+ |
+ V
+ +-----+-----+
+ | any | | |
+ +-----+--+--+
+ |
+ V
+ ...
+</code></pre>
+
+<p>Lists are used in PicoLisp to emulate composite data structures like arrays,
+trees, stacks or queues.
<p>In contrast to lists, numbers and symbols are collectively called "Atoms".
diff --git a/doc/structures b/doc/structures
@@ -9,10 +9,19 @@
Number
|
V
- +-----+-----+ +-----+-----+ +-----+-----+
- |'DIG'| ---+---> |'DIG'| ---+---> |'DIG'| / |
- +-----+-----+ +-----+-----+ +-----+-----+
-
+ +-----+-----+
+ | DIG | | |
+ +-----+--+--+
+ |
+ V
+ +-----+-----+
+ | DIG | | |
+ +-----+--+--+
+ |
+ V
+ +-----+-----+
+ | DIG | / |
+ +-----+-----+
Cell
|