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

13
lang/ast/unit-package.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef _AST_UNIT_PACKAGE_H_
#define _AST_UNIT_PACKAGE_H_
#include "ctx.h"
#include <ivy/lang/lex.h>
struct unit_package_parser_state {
struct parser_state s_base;
int s_prev_token;
};
#endif