mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-25 15:05:00 -07:00
Add parse_int; Fix union bugs with size, alignment, and recursive definition checking
This commit is contained in:
@@ -1197,7 +1197,11 @@ Token expect_token(AstFile *f, TokenKind kind) {
|
||||
syntax_error(f->curr_token, "Expected `%.*s`, got `%.*s`",
|
||||
LIT(token_strings[kind]),
|
||||
LIT(token_strings[prev.kind]));
|
||||
if (prev.kind == Token_EOF) {
|
||||
gb_exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
next_token(f);
|
||||
return prev;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user