libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Functions
loc.c File Reference
#include <stdio.h>
#include "loc.h"

Go to the source code of this file.

Functions

 PS_PRINT_IMPL (ps_loc, { printf("%s:%zu:%zu (pos %zu)", self->filename, self->line, self->col, self->pos);})
 
bool ps_is_loc_none (const struct ps_loc *loc)
 Whether the token location is an not actual location.
 

Function Documentation

◆ ps_is_loc_none()

bool ps_is_loc_none ( const struct ps_loc loc)

Whether the token location is an not actual location.

Definition at line 20 of file loc.c.

◆ PS_PRINT_IMPL()

PS_PRINT_IMPL ( ps_loc  ,
{ printf("%s:%zu:%zu (pos %zu)", self->filename, self->line, self->col, self->pos);}   
)

Definition at line 6 of file loc.c.