stage1 重构代码 语法上重新实现解包语法
This commit is contained in:
1 parent
2a84b61e3d
commit
54425a50c7
10 files changed
+2681
-2478
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#ifndef __SPL_PARSER_H__
|
||||
#define __SPL_PARSER_H__
|
||||
|
||||
#include "spl_ast.h"
|
||||
#include "spl_diag.h"
|
||||
|
||||
typedef struct spl_parser {
|
||||
spl_ast_t *ast;
|
||||
spl_diag_t *diag;
|
||||
usize pos;
|
||||
int failed;
|
||||
int stop_agg;
|
||||
usize error_count;
|
||||
} spl_parser_t;
|
||||
|
||||
void spl_parser_init(spl_parser_t *p);
|
||||
void spl_parser_drop(spl_parser_t *p);
|
||||
|
||||
void spl_ast_parse(spl_parser_t *p, spl_ast_t *ast);
|
||||
|
||||
#endif /* __SPL_PARSER_H__ */
|
||||
Reference in new issue
Block a user