Do not create item set following EOF token
This commit is contained in:
1 parent
08e3516ad9
commit
7bdaf7cdbc
1 file changed
+4
-2
@@ -25,8 +25,10 @@ class Imbecile
|
||||
puts item_set
|
||||
puts
|
||||
item_set.follow_symbols.each do |follow_symbol|
|
||||
follow_set = item_set.follow_set(follow_symbol)
|
||||
eval_item_sets << follow_set
|
||||
unless follow_symbol == token_eof
|
||||
follow_set = item_set.follow_set(follow_symbol)
|
||||
eval_item_sets << follow_set
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user