change to syntax error
This commit is contained in:
@@ -42,7 +42,7 @@ ParsedValue *parse_token(char *file, DArray *parsed, DArray *tokens,
|
|||||||
case TOKEN_ASSIGN_SLASH:
|
case TOKEN_ASSIGN_SLASH:
|
||||||
case TOKEN_ASSIGN_STAR:
|
case TOKEN_ASSIGN_STAR:
|
||||||
if (parsed->size == 0) {
|
if (parsed->size == 0) {
|
||||||
fprintf(stderr, "%s:%u:%u error: assigning to nothing\n", file, token->line,
|
fprintf(stderr, "%s:%u:%u error: syntax error\n", file, token->line,
|
||||||
token->column);
|
token->column);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user