diff options
author | c | 2023-11-27 09:06:35 -0500 |
---|---|---|
committer | c | 2023-11-27 09:06:35 -0500 |
commit | 82e759959cda6cee81486a1f3f5fef0713587223 (patch) | |
tree | 5d1b151bde4241acb12797776d83be30b727f723 /src/include | |
parent | 4719af8e829493d4fee2782ce8870b0cc902638f (diff) |
Definitions with no arguments can now be parsed. Definitions with arguments can also be parser, but they cannot store values.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/tree.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/include/tree.h b/src/include/tree.h index 1976773..20d97be 100644 --- a/src/include/tree.h +++ b/src/include/tree.h @@ -33,8 +33,7 @@ typedef struct TREE { /* Expression. */ struct TREE_DATA_EXPR { - /* The contents of the expression. */ - struct TREE* val; + struct TREE* val; /* ??? */ } expr; /* Literal integer. */ @@ -56,7 +55,7 @@ typedef struct TREE { /* Definition arguments. */ struct TREE_DATA_DARG { - struct TREE* val; /* DEF */ + struct TREE* tag; /* TAG */ struct TREE* nxt; /* DARG */ } darg; @@ -70,7 +69,7 @@ typedef struct TREE { struct TREE_DATA_DEF { struct TREE* tag; /* TAG */ struct TREE* arg; /* DARG */ - struct TREE* val; + struct TREE* val; /* EXPR */ } def; /* Calls. */ |