aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors-over-42023-07-09 23:31:18 -0400
committers-over-42023-07-09 23:31:18 -0400
commite78dee530d10cb3e66383907cce8a008602941fc (patch)
treedac558d99edf38c9e631820526325654d77419e3
parent657eac56d1ec80d670bbabafe7d67aa6695d8c05 (diff)
tree structunkdjf2
-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
=================