parser improved

This commit is contained in:
2025-11-12 14:15:12 +03:00
parent bf9d827ae1
commit 0a2a255993
2 changed files with 185 additions and 22 deletions

View File

@@ -288,7 +288,7 @@ Token parse_func_def(Token *inp, size_t *idx, SymbolTable *sym){
skip_space(inp, idx);
}
if (inp->type[*idx] != TOKEN_IDENTIFIER){
if (inp->type[*idx] != TOKEN_IDENT_INT){
fprintf(stderr, "Expected return type after ')'\n");
exit(1);
}