summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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 */