lang: ast: remove redundant parse header

This commit is contained in:
2024-11-26 21:30:09 +00:00
parent 8cf341c063
commit 740df312a9
2 changed files with 0 additions and 38 deletions

View File

@@ -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,
},
};

View File

@@ -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