diff options
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/parser.h b/src/parser.h index d44a4df..b846ae1 100644 --- a/src/parser.h +++ b/src/parser.h @@ -17,6 +17,7 @@ #ifndef PARSER_H #define PARSER_H +#include "ast.h" #include "lexer.h" #include "string_view.h" @@ -24,20 +25,6 @@ typedef struct parser_t { lexer_t *lexer; } parser_t; -typedef enum { - TYPE_I32 -} type_t; - -typedef struct ast_return_stmt_t { - uint32_t number; -} ast_return_stmt_t; - -typedef struct ast_function_t { - string_view_t name; - type_t return_type; - ast_return_stmt_t body; -} ast_function_t; - void parser_init(parser_t *parser, lexer_t *lexer); ast_function_t parser_parse_function(parser_t *parser); |