Fix non-deterministic ordering of lex states
This commit is contained in:
parent
83f0ea80cf
commit
a9ca6ff73c
1 changed files with 1 additions and 0 deletions
|
|
@ -294,6 +294,7 @@ fn minimize_lex_table(table: &mut LexTable, parse_table: &mut ParseTable) {
|
|||
.into_iter()
|
||||
.map(|e| e.1)
|
||||
.collect::<Vec<_>>();
|
||||
state_ids_by_group_id.sort();
|
||||
let error_group_index = state_ids_by_group_id
|
||||
.iter()
|
||||
.position(|g| g.contains(&0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue