feat: implement M1 Ferro frontend
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef FE_PARSER_H
|
||||
#define FE_PARSER_H
|
||||
|
||||
#include "ast.h"
|
||||
|
||||
typedef struct FeParser {
|
||||
FeLexer lexer;
|
||||
FeToken current;
|
||||
FeToken previous;
|
||||
FeAst *ast;
|
||||
FeDiags *diags;
|
||||
} FeParser;
|
||||
|
||||
void fe_parser_init(FeParser *p, FeAst *ast, const char *src, unsigned long length, const char *file, FeDiags *d);
|
||||
FeNode *fe_parse_unit(FeParser *p);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user