Handle shifting states after reducing
This commit is contained in:
1 parent
84c4a16ce6
commit
f2cc5b112e
4 files changed
+57
-9
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user