summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorQuinn Stephens <quinn@osmora.org>2025-06-09 21:49:07 -0400
committerQuinn Stephens <quinn@osmora.org>2025-06-09 21:49:07 -0400
commit065d60fc962136d03a8a74eb235901aa14d87593 (patch)
tree0c70b18522c1bcb0288db886d7a9b429481b6121 /include
parent6ff31c0dbf2f5485604936de3e6457794554fb75 (diff)
parser: Store symbols in a hashmap
Signed-off-by: Quinn Stephens <quinn@osmora.org>
Diffstat (limited to 'include')
-rw-r--r--include/parser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/parser.h b/include/parser.h
index d0dadbe..a362613 100644
--- a/include/parser.h
+++ b/include/parser.h
@@ -30,11 +30,13 @@
#ifndef _PARSER_H
#define _PARSER_H 1
+#include "hashmap.h"
#include "lexer.h"
struct parser {
struct lexer *lexer;
struct token tok;
+ struct hashmap syms;
};
static inline bool
@@ -43,6 +45,6 @@ parser_advance(struct parser *ctx)
return lexer_next(ctx->lexer, &ctx->tok);
}
-bool parser_parse(struct lexer *lexer);
+bool parser_parse(struct parser *ctx);
#endif /* !_PARSER_H */