summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2023-05-17 15:31:24 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2023-05-17 15:31:24 +0200
commit15196aa56339d34af9f74b019e6aeff5816e8dcc (patch)
treeffe7d6ec48bc6018b5eea7e9ef573cd1bbd57c2f /src/parser.h
parentad54ee1182b1549880eddc8b1969d3992d9f7f1d (diff)
parentea7f65fe1250be8f49edcaaedd3410aed1401648 (diff)
Merge commit 'ea7f65fe1250be8f49edcaaedd3410aed1401648' of https://git.sr.ht/~carlosmaniero/pipac-clone
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
index ef5dff5..cfeb1f0 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -28,10 +28,17 @@ typedef struct parser_error_t
char message[256];
} parser_error_t;
+typedef struct reevaluation_node_t
+{
+ ast_node_t *node;
+ token_t token;
+} reevaluation_node_t;
+
typedef struct parser_t
{
lexer_t *lexer;
scope_t *scope;
+ vector_t *to_be_reevaluated;
int errors_len;
// FIXME: replace with vector
parser_error_t errors[1];
@@ -46,4 +53,7 @@ parser_parse_function_declaration(parser_t *parser);
ast_node_t *
parser_parse_expression(parser_t *parser);
+ast_node_t *
+parser_parse_ns(parser_t *parser);
+
#endif /* PARSER_H */