Use symbol_id instead of token_id for shift table entries

This commit is contained in:
Josh Holtrop 2023-07-12 15:51:07 -04:00
parent 7a1b4064c1
commit c7bca74d3e
2 changed files with 2 additions and 2 deletions

View File

@ -620,7 +620,7 @@ private struct StateValue
private static immutable Shift[] parser_shifts = [ private static immutable Shift[] parser_shifts = [
<% @parser.shift_table.each do |shift| %> <% @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 %> <% end %>
]; ];

View File

@ -56,7 +56,7 @@ class Propane
item_set.following_item_set[following_symbol].id item_set.following_item_set[following_symbol].id
end end
{ {
token_id: following_symbol.id, symbol_id: following_symbol.id,
state_id: state_id, state_id: state_id,
} }
end end