22 lines
417 B
C
22 lines
417 B
C
#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__ */
|