[Top]
7.2::
LR
LR.item
|
Class LR.item
- Description
An LR(0) item, a partially parsed rule.
- Variable
r
rule LR.item.r
- Description
The rule
- Variable
offset
int LR.item.offset
- Description
How long into the rule the parsing has come.
- Variable
next_state
object LR.item.next_state
- Description
The state we will get if we shift according to this rule
- Variable
master_item
object LR.item.master_item
- Description
Item representing this one (used for shifts).
- Variable
direct_lookahead
multiset(string) LR.item.direct_lookahead
- Description
Look-ahead set for this item.
- Variable
error_lookahead
multiset(string) LR.item.error_lookahead
- Description
Look-ahead set used for detecting conflicts
- Variable
relation
multiset(object) LR.item.relation
- Description
Relation to other items (used when compiling).
- Variable
counter
int LR.item.counter
- Description
Depth counter (used when compiling).
- Variable
number
int LR.item.number
- Description
Item identification number (used when compiling).
- Variable
item_id
int LR.item.item_id
- Description
Used to identify the item.
Equal to r->number + offset.
|