diff options
author | Quinn Stephens <quinn@osmora.org> | 2025-06-09 21:49:07 -0400 |
---|---|---|
committer | Quinn Stephens <quinn@osmora.org> | 2025-06-09 21:49:07 -0400 |
commit | 065d60fc962136d03a8a74eb235901aa14d87593 (patch) | |
tree | 0c70b18522c1bcb0288db886d7a9b429481b6121 /include | |
parent | 6ff31c0dbf2f5485604936de3e6457794554fb75 (diff) |
parser: Store symbols in a hashmap
Signed-off-by: Quinn Stephens <quinn@osmora.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/parser.h | 4 |
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 */ |