aboutsummaryrefslogtreecommitdiffstats
path: root/src/nodes.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-04-06 22:02:55 -0300
committerBad Diode <bd@badd10de.dev>2022-04-06 22:02:55 -0300
commit8186228baa8a4e646e2f11c0dbbf6a023079f8eb (patch)
tree56387d7a0fc52b2b9691c6d01202b2fb6338b77a /src/nodes.h
parent725ba80c048069d15b2668ad0fa0e123819ec410 (diff)
downloadbdl-8186228baa8a4e646e2f11c0dbbf6a023079f8eb.tar.gz
bdl-8186228baa8a4e646e2f11c0dbbf6a023079f8eb.zip
Add initial implementation of symbol checking
Diffstat (limited to 'src/nodes.h')
-rw-r--r--src/nodes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nodes.h b/src/nodes.h
index 4fb48a1..cf0e749 100644
--- a/src/nodes.h
+++ b/src/nodes.h
@@ -17,6 +17,8 @@ typedef enum NodeType {
17 17
18typedef struct Node { 18typedef struct Node {
19 NodeType type; 19 NodeType type;
20 size_t line;
21 size_t col;
20 22
21 union { 23 union {
22 // Numbers. 24 // Numbers.
@@ -26,7 +28,7 @@ typedef struct Node {
26 size_t fractional; 28 size_t fractional;
27 } number; 29 } number;
28 30
29 // String/symbol. 31 // String/symbol/type.
30 StringView string; 32 StringView string;
31 33
32 // Boolean. 34 // Boolean.