From f2bc5274bb55bc2b180efae274ada107ea4716d1 Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Fri, 14 Apr 2023 23:38:43 +0200 Subject: parser: Show filepath row and col when parsing fails In order to find out where a parsing error occurred, this patch introduces the exactly location following the format 'file:row:col'. Signed-off-by: Johnny Richard --- src/lexer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lexer.h') diff --git a/src/lexer.h b/src/lexer.h index f5333a0..472ee10 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -36,6 +36,7 @@ typedef enum { typedef struct token_t { token_kind_t kind; char *value; + char *filepath; uint32_t row; uint32_t col; } token_t; -- cgit v1.2.3