aboutsummaryrefslogtreecommitdiffstats
path: root/src/nodes.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-04-03 17:16:26 -0300
committerBad Diode <bd@badd10de.dev>2022-04-03 17:16:26 -0300
commit496ec36c8002a85dc0c3bb62de6d176e369b40af (patch)
treec9247f637ae77bd07516490f4101becaad6a0111 /src/nodes.h
parent483a64aa0c5ee8dc925b7957e39c42744b892288 (diff)
downloadbdl-496ec36c8002a85dc0c3bb62de6d176e369b40af.tar.gz
bdl-496ec36c8002a85dc0c3bb62de6d176e369b40af.zip
Add parsing for (set ...) statements
Diffstat (limited to 'src/nodes.h')
-rw-r--r--src/nodes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodes.h b/src/nodes.h
index e6ceb50..566d6d3 100644
--- a/src/nodes.h
+++ b/src/nodes.h
@@ -8,6 +8,7 @@ typedef enum NodeType {
8 NODE_STRING, 8 NODE_STRING,
9 NODE_SYMBOL, 9 NODE_SYMBOL,
10 NODE_DEF, 10 NODE_DEF,
11 NODE_SET,
11} NodeType; 12} NodeType;
12 13
13typedef struct Node { 14typedef struct Node {
@@ -39,6 +40,11 @@ typedef struct Node {
39 struct Node *value; 40 struct Node *value;
40 StringView type; 41 StringView type;
41 } def; 42 } def;
43
44 struct {
45 struct Node *symbol;
46 struct Node *value;
47 } set;
42 }; 48 };
43} Node; 49} Node;
44 50