lang: ast: remove redundant parse header
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
#include "parse.h"
|
||||
|
||||
#include <ivy/lang/ast.h>
|
||||
#include <ivy/lang/lex.h>
|
||||
|
||||
static token_parse_function token_parsers[IVY_AST_TYPE_COUNT][IVY_TOK_TYPE_COUNT] = {
|
||||
[IVY_AST_UNIT] = {
|
||||
[IVY_TOK_KEYWORD] = NULL,
|
||||
},
|
||||
};
|
||||
|
||||
static token_parse_function keyword_parsers[IVY_AST_TYPE_COUNT][IVY_KW_TYPE_COUNT] = {
|
||||
[IVY_AST_UNIT] = {
|
||||
[IVY_KW_PACKAGE] = NULL,
|
||||
},
|
||||
};
|
||||
|
||||
static token_parse_function symbol_parsers[IVY_AST_TYPE_COUNT][IVY_SYM_TYPE_COUNT] = {
|
||||
[IVY_AST_UNIT] = {
|
||||
[IVY_SYM_NONE] = NULL,
|
||||
},
|
||||
};
|
||||
@@ -1,16 +0,0 @@
|
||||
#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