satyr 0.42
Loading...
Searching...
No Matches
Data Fields
sr_location Struct Reference

A location of a parser in the input stream. More...

#include <location.h>

Data Fields

int line
 
int column
 
const char * message
 

Detailed Description

A location of a parser in the input stream.

A location in the stacktrace file with an attached message. It's used for error reporting: the line and the column points to the place where a parser error occurred, and the message explains what the parser expected and didn't find on that place.

Definition at line 42 of file location.h.

Field Documentation

◆ column

int sr_location::column

Starts from 0.

Definition at line 47 of file location.h.

◆ line

int sr_location::line

Starts from 1.

Definition at line 45 of file location.h.

◆ message

const char* sr_location::message

Error message related to the line and column. Do not release the memory this pointer points to.

Definition at line 52 of file location.h.


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