Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
Loading...
Searching...
No Matches
LimeLocation Struct Reference

Source location tracking for Lime-generated parsers. More...

#include <lime_location.h>

Data Fields

const char * filename
 Borrowed filename pointer, or NULL.
 
uint32_t first_column
 First column of the span (1-based)
 
uint32_t first_line
 First line of the span (1-based)
 
uint32_t last_column
 Last column of the span (1-based)
 
uint32_t last_line
 Last line of the span (1-based)
 

Detailed Description

Source location tracking for Lime-generated parsers.

Used when the locations directive is active. All line and column numbers are 1-based; zero indicates "unknown".

Definition at line 16 of file lime_location.h.

Field Documentation

◆ filename

const char* LimeLocation::filename

Borrowed filename pointer, or NULL.

Definition at line 21 of file lime_location.h.

◆ first_column

uint32_t LimeLocation::first_column

First column of the span (1-based)

Definition at line 18 of file lime_location.h.

◆ first_line

uint32_t LimeLocation::first_line

First line of the span (1-based)

Definition at line 17 of file lime_location.h.

◆ last_column

uint32_t LimeLocation::last_column

Last column of the span (1-based)

Definition at line 20 of file lime_location.h.

◆ last_line

uint32_t LimeLocation::last_line

Last line of the span (1-based)

Definition at line 19 of file lime_location.h.


The documentation for this struct was generated from the following file: