Handle shifting states after reducing

This commit is contained in:
josh committed 2022-06-25 16:16:20 -04:00
1 parent 84c4a16ce6
commit f2cc5b112e
4 files changed
+57 -9

No files matched your search

+1 -3
View File
@@ -62,9 +62,7 @@ class Propane
state_table = []
reduce_table = []
@item_sets.each do |item_set|
shift_entries = item_set.following_symbols.select do |following_symbol|
following_symbol.is_a?(Token)
end.map do |following_symbol|
shift_entries = item_set.following_symbols.map do |following_symbol|
state_id =
if following_symbol == @eof_token
0