From b7e9493171e1270f413808f1104eb1b2604e35e0 Mon Sep 17 00:00:00 2001 From: William Bell Date: Sat, 31 May 2025 21:45:11 +0100 Subject: [PATCH] change to syntax error --- src/parser/parser.c | 2 +- test.ar | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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