Include precedence calculation in LexItemSet::transitions
This commit is contained in:
parent
e9be0ff24e
commit
73b3280fbb
11 changed files with 278 additions and 142 deletions
|
|
@ -46,8 +46,7 @@ ParseItem::CompletionStatus ParseItem::completion_status() const {
|
|||
if (step_index == production->size()) {
|
||||
result.is_done = true;
|
||||
if (step_index > 0) {
|
||||
const ProductionStep &last_step =
|
||||
production->at(step_index - 1);
|
||||
const ProductionStep &last_step = production->at(step_index - 1);
|
||||
result.precedence = last_step.precedence;
|
||||
result.associativity = last_step.associativity;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue