lang: ast: re-factor parser into multiple files
This commit is contained in:
16
lang/ast/parse.h
Normal file
16
lang/ast/parse.h
Normal 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
|
||||
Reference in New Issue
Block a user