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

A grammar context – one possible interpretation of a token within a particular grammar/extension. More...

#include <conflict.h>

Data Fields

ExtensionID ext_id
 Extension providing this context.
 
const char * grammar_name
 Human-readable grammar name (not owned)
 
int priority
 Higher = preferred (from extension)
 
int state
 Parser state where this applies.
 
uint16_t token
 Token code in this grammar's space.
 

Detailed Description

A grammar context – one possible interpretation of a token within a particular grammar/extension.

Definition at line 215 of file conflict.h.

Field Documentation

◆ ext_id

ExtensionID LimeContext::ext_id

Extension providing this context.

Definition at line 216 of file conflict.h.

◆ grammar_name

const char* LimeContext::grammar_name

Human-readable grammar name (not owned)

Definition at line 220 of file conflict.h.

◆ priority

int LimeContext::priority

Higher = preferred (from extension)

Definition at line 219 of file conflict.h.

◆ state

int LimeContext::state

Parser state where this applies.

Definition at line 218 of file conflict.h.

◆ token

uint16_t LimeContext::token

Token code in this grammar's space.

Definition at line 217 of file conflict.h.


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