Skip to content

Commit

Permalink
Two comments for parser.rs (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeffrey Kegler <[email protected]>
  • Loading branch information
v-jkegler and Jeffrey Kegler authored Oct 1, 2024
1 parent 106a28f commit de32aa3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions parser/src/earley/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ impl ParserStats {
struct Row {
first_item: usize,
last_item: usize,

// The "allowed lexemes". The allowed lexemes (aka acceptable
// lexemes, aka relevant lexemes) are those which the recognizer
// will accept in the next row. They are all and only those lexemes
// which can lead to a successful parse.
allowed_lexemes: SimpleVob,
}

Expand Down Expand Up @@ -158,8 +163,11 @@ impl Item {
#[derive(Clone)]
struct Scratch {
grammar: Arc<CGrammar>,

// The current "working row"
row_start: usize,
row_end: usize,

items: Vec<Item>,
item_props: Vec<ItemProps>,
definitive: bool,
Expand Down

0 comments on commit de32aa3

Please sign in to comment.