From d86d70fc7c6751713a6b9f02d9f77814e2f75718 Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Fri, 21 Apr 2023 15:11:17 +0200 Subject: parser: Parse integers arithmetic expression This patch implements the AST creation for arithmetic expressions. NOTE: The implementation works only for integer numbers. Signed-off-by: Johnny Richard Reviewed-by: Carlos Maniero --- src/parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 5f73ff3..00d1aae 100644 --- a/src/parser.h +++ b/src/parser.h @@ -35,6 +35,7 @@ typedef struct parser_t { void parser_init(parser_t *parser, lexer_t *lexer); bool parser_parse_function_declaration(parser_t *parser, ast_node_t *node); +bool parser_parse_expression(parser_t *parser, ast_node_t *node); #endif /* PARSER_H */ -- cgit v1.2.3