aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tree.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/tree.txt b/tree.txt
index 75433b2..39340fe 100644
--- a/tree.txt
+++ b/tree.txt
@@ -1,15 +1,16 @@
The Expr
========
- [ block ] ⇐ a block is a list of exprs
+ [ block ] ⇐ A list of exprs.
│ ┌┘
│ │
- [ expr ] ── [ lit ] ⇐ a literal value; "base case" for the tree
+ [ expr ] ── [ lit ] ⇐ A literal value; "base case" for the tree.
│ │ ├── type
┌──┘ └──┐ └─ value
[ def ] [ call ]
│ │
- ├─ [target] ← id ├─ [target] ← id ⇐ an id is a pointer to another part of the tree
- └── [value] ← expr └──── [arg] ← expr
+ ├─ [target] ← id ├─ [target] ← id ⇐ An id is a pointer to another part of the tree.
+ └── [value] ← expr │ It also contains the flags used in the definition.
+ └──── [arg] ← expr
Example Expr Tree
=================