diff options
author | Linnnus <[email protected]> | 2025-04-10 05:21:36 +0000 |
---|---|---|
committer | Linnnus <[email protected]> | 2025-04-15 00:54:43 +0000 |
commit | 7bd2461c849b4626653a4744427c904b87354bd7 (patch) | |
tree | 38ee0e0ac9408c989f3c50c0c6ff28492faf497d /src/core/location.c | |
parent | 8dd0c4f27aae02dd60f029db4cf03f9902cba26f (diff) |
feat(core): Add tokenizer
Diffstat (limited to 'src/core/location.c')
-rw-r--r-- | src/core/location.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); +} |