change to syntax error

This commit is contained in:
2025-05-31 21:45:11 +01:00
parent a614eab8fc
commit b7e9493171
2 changed files with 2 additions and 3 deletions

View File

@@ -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);
} }

View File

@@ -1,2 +1 @@
"hello world" x="hello world"
"hello world"="hello world"