From 740df312a941c58b420f493891cdf2c10ddd985a Mon Sep 17 00:00:00 2001 From: Max Wash Date: Tue, 26 Nov 2024 21:30:09 +0000 Subject: [PATCH] lang: ast: remove redundant parse header --- lang/ast/parse.c | 22 ---------------------- lang/ast/parse.h | 16 ---------------- 2 files changed, 38 deletions(-) delete mode 100644 lang/ast/parse.c delete mode 100644 lang/ast/parse.h diff --git a/lang/ast/parse.c b/lang/ast/parse.c deleted file mode 100644 index 8be3f4d..0000000 --- a/lang/ast/parse.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "parse.h" - -#include -#include - -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, - }, -}; diff --git a/lang/ast/parse.h b/lang/ast/parse.h deleted file mode 100644 index faf53a5..0000000 --- a/lang/ast/parse.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef _AST_PARSE_H_ -#define _AST_PARSE_H_ - -#include - -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