diff options
author | c+1 | 2023-10-21 09:10:58 -0400 |
---|---|---|
committer | c+1 | 2023-10-21 09:10:58 -0400 |
commit | 6fc8f91e0d96ae4b4ee59ea562574cc04fdf8abf (patch) | |
tree | f7e1a8041f2808eecc60cae54f5dda3f85850c32 /tree.txt | |
parent | cc7bb40ae5e7f8f345195547b2c5044efc4d61ba (diff) |
⬣
Diffstat (limited to 'tree.txt')
-rw-r--r-- | tree.txt | 30 |
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 - ... - |