lang: ast: re-factor parser into multiple files

This commit is contained in:
2024-11-24 11:10:42 +00:00
parent a25683ddc9
commit f1ea916155
12 changed files with 423 additions and 276 deletions

16
lang/ast/parse.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef _AST_PARSE_H_
#define _AST_PARSE_H_
#include <ivy/status.h>
struct ivy_parser;
struct ivy_ast_node;
struct ivy_token;
typedef enum ivy_status (*token_parse_function)(
struct ivy_parser *, struct ivy_token *);
extern token_parse_function get_token_parser(
struct ivy_ast_node *context, struct ivy_token *tok);
#endif