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

One level of the grammar context stack. More...

#include <grammar_context.h>

Data Fields

int depth
 Nesting depth (for bracket matching)
 
GrammarMode mode
 Active grammar mode.
 
const char * mode_name
 Human-readable name (borrowed)
 
ParserSnapshotsnapshot
 Snapshot for this grammar.
 
uint32_t start_offset
 Input offset where mode began.
 

Detailed Description

One level of the grammar context stack.

Definition at line 90 of file grammar_context.h.

Field Documentation

◆ depth

int GrammarContextEntry::depth

Nesting depth (for bracket matching)

Definition at line 94 of file grammar_context.h.

◆ mode

GrammarMode GrammarContextEntry::mode

Active grammar mode.

Definition at line 91 of file grammar_context.h.

◆ mode_name

const char* GrammarContextEntry::mode_name

Human-readable name (borrowed)

Definition at line 92 of file grammar_context.h.

◆ snapshot

ParserSnapshot* GrammarContextEntry::snapshot

Snapshot for this grammar.

Definition at line 93 of file grammar_context.h.

◆ start_offset

uint32_t GrammarContextEntry::start_offset

Input offset where mode began.

Definition at line 95 of file grammar_context.h.


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