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