From 7bd2461c849b4626653a4744427c904b87354bd7 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Thu, 10 Apr 2025 05:21:36 +0000 Subject: feat(core): Add tokenizer --- src/core/location.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/core/location.c (limited to 'src/core/location.c') diff --git a/src/core/location.c b/src/core/location.c new file mode 100644 index 0000000..9f8de09 --- /dev/null +++ b/src/core/location.c @@ -0,0 +1,5 @@ +#include "location.h" + +void sand_print_location(FILE *stream, const SandLocation *location) { + fprintf(stream, "%s:%u:%u", location->filename, location->start_line + 1, location->start_column); +} -- cgit v1.2.3