diff options
author | c+1 | 2023-11-21 10:16:23 -0500 |
---|---|---|
committer | c+1 | 2023-11-21 10:16:23 -0500 |
commit | c3c0f8f78085bdc4698263513aea0c9b2d33bae4 (patch) | |
tree | 178ec7bafbfcfbf9a8204f8e9738e537c371bda7 /src/include/tree.h | |
parent | 000658c8405f93bf8ce1e03a9055e6944e730534 (diff) |
Basic block, expression, and number parsing.
Diffstat (limited to 'src/include/tree.h')
-rw-r--r-- | src/include/tree.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/tree.h b/src/include/tree.h index 3dfb5be..ba1f5a5 100644 --- a/src/include/tree.h +++ b/src/include/tree.h @@ -5,6 +5,7 @@ typedef enum TREE_TYPE { TREE_TYPE_BLOCK, + TREE_TYPE_EXPR, TREE_TYPE_LINT, TREE_TYPE_LSTR, TREE_TYPE_TAG, @@ -30,6 +31,12 @@ typedef struct TREE { struct TREE* nxt; } block; + /* Expression. */ + struct TREE_DATA_EXPR { + /* The contents of the expression. */ + struct TREE* val; + } expr; + /* Literal integer. */ struct TREE_DATA_LINT { int val; |