7 printf(
"%s:%zu:%zu (pos %zu)", self->filename, self->line, self->col,
static void usize struct ps_loc loc
bool ps_is_loc_none(const struct ps_loc *loc)
Whether the token location is an not actual location.
struct ps_loc PS_LOC_NONE(void)
Represents the absence token location.
#define PS_PRINT_IMPL(T,...)
Represents a token location.
STR filename
The file where the token is from.
usize pos
The token's position in the text.
usize line
The line number where the token is found.
usize col
The column number where the token starts.