stage1 修复设计问题 实现ast2ir
This commit is contained in:
@@ -151,7 +151,8 @@ static void parse_error(parser_t *p, spl_tok_t *t, const char *msg) {
|
||||
const char *fn = (t && t->fname) ? t->fname : "<unknown>";
|
||||
usize line = t ? t->line : 0;
|
||||
usize col = t ? t->col : 0;
|
||||
LOG_FATAL("%s:%llu:%llu: error: %s", fn, (unsigned long long)line, (unsigned long long)col, msg);
|
||||
LOG_FATAL("%s:%llu:%llu: error: %s", fn, (unsigned long long)line, (unsigned long long)col,
|
||||
msg);
|
||||
}
|
||||
|
||||
static int expect(parser_t *p, spl_tok_type_t type, const char *what) {
|
||||
|
||||
Reference in New Issue
Block a user