aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authors-over-42023-06-22 23:46:09 -0400
committers-over-42023-06-22 23:46:09 -0400
commit22c5a86f83288b94975bb84cbd1ebfa62d2ed2af (patch)
tree36b51b4ed5db954963d5eaebd097f902349c7ec1 /src/include
parent3a38a28da1b26cba5d71d01db6e71ce30091765c (diff)
Makefile changes
Diffstat (limited to 'src/include')
-rw-r--r--src/include/parser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/parser.h b/src/include/parser.h
index dcacabe..2811469 100644
--- a/src/include/parser.h
+++ b/src/include/parser.h
@@ -13,9 +13,10 @@ typedef struct PARSER_STRUC {
// initialize a parser
parser_t* parser_init(lexer_t* lexer);
+void parser_destroy(parser_t* parser);
// check for expected token, or throw syntax error
-void parser_token_expect(parser_t* parser, int token_type);
+void parser_token_expect(parser_t* parser, int (*expected_token)(token_t*));
// do the parse
tree_t* parser_parse(parser_t* parser);