aboutsummaryrefslogtreecommitdiff
path: root/tree.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tree.txt')
-rw-r--r--tree.txt30
1 files changed, 0 insertions, 30 deletions
diff --git a/tree.txt b/tree.txt
deleted file mode 100644
index 39340fe..0000000
--- a/tree.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-The Expr
-========
- [ block ] ⇐ A list of exprs.
- │ ┌┘
- │ │
- [ 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 │ It also contains the flags used in the definition.
- └──── [arg] ← expr
-
-Example Expr Tree
-=================
-[ block ]
- │
- ├─ [ def ]
- │ │
- │ ├─ [target] → hello
- │ └── [value] → [ lit ]
- │ ├── type → str
- │ └─ value → Hello, World
- ├─ [ call ]
- │ │
- │ ├─ [target] → print
- │ └──── [arg] → hello
- ...
-