diff --git a/src/parser/parser.c b/src/parser/parser.c index 454bbfb..2d88f0b 100644 --- a/src/parser/parser.c +++ b/src/parser/parser.c @@ -42,7 +42,7 @@ ParsedValue *parse_token(char *file, DArray *parsed, DArray *tokens, case TOKEN_ASSIGN_SLASH: case TOKEN_ASSIGN_STAR: 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); exit(EXIT_FAILURE); } diff --git a/test.ar b/test.ar index 2d7a86c..edf2d86 100644 --- a/test.ar +++ b/test.ar @@ -1,2 +1 @@ -"hello world" -"hello world"="hello world" \ No newline at end of file +x="hello world" \ No newline at end of file