Use symbol_id instead of token_id for shift table entries

This commit is contained in:
josh committed 2023-07-12 15:51:07 -04:00
1 parent 7a1b4064c1
commit c7bca74d3e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -620,7 +620,7 @@ private struct StateValue
private static immutable Shift[] parser_shifts = [
<% @parser.shift_table.each do |shift| %>
Shift(<%= shift[:token_id] %>u, <%= shift[:state_id] %>u),
Shift(<%= shift[:symbol_id] %>u, <%= shift[:state_id] %>u),
<% end %>
];