From 82e759959cda6cee81486a1f3f5fef0713587223 Mon Sep 17 00:00:00 2001 From: c Date: Mon, 27 Nov 2023 09:06:35 -0500 Subject: Definitions with no arguments can now be parsed. Definitions with arguments can also be parser, but they cannot store values. --- src/include/tree.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/include') 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. */ -- cgit v1.2.3