libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Data Structures | Functions
loc.h File Reference

File location structure. More...

#include "def.h"
#include "util/print.h"

Go to the source code of this file.

Data Structures

struct  ps_loc
 Represents a token location. More...
 

Functions

 PS_PRINT_DECL (ps_loc)
 
struct ps_loc PS_LOC_NONE (void)
 Represents the absence token location.
 
bool ps_is_loc_none (const struct ps_loc *loc)
 Whether the token location is an not actual location.
 

Detailed Description

File location structure.

Author
Ethan Uppal

Definition in file loc.h.

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_LOC_NONE()

struct ps_loc PS_LOC_NONE ( void  )

Represents the absence token location.

◆ PS_PRINT_DECL()

PS_PRINT_DECL ( ps_loc  )