aboutsummaryrefslogtreecommitdiff
path: root/include/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/parser.h')
-rw-r--r--include/parser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/parser.h b/include/parser.h
index d66a096..e90871f 100644
--- a/include/parser.h
+++ b/include/parser.h
@@ -4,6 +4,7 @@
#include "buffer.h"
#include "buffer_view.h"
#include "tokenizer.h"
+#include "scoped_allocator.h"
#define PARSER_OK 0
/* General error */
@@ -11,8 +12,9 @@
#define PARSER_UNEXPECTED_TOKEN -2
typedef struct {
- Buffer ast_objects;
Tokenizer tokenizer;
+ ScopedAllocator allocator;
+ Buffer ast_objects;
} Parser;
CHECK_RESULT int parser_init(Parser *self);