From 22c5a86f83288b94975bb84cbd1ebfa62d2ed2af Mon Sep 17 00:00:00 2001 From: s-over-4 Date: Thu, 22 Jun 2023 23:46:09 -0400 Subject: Makefile changes --- src/include/parser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3