Do not create item set following EOF token
This commit is contained in:
parent
08e3516ad9
commit
7bdaf7cdbc
@ -25,6 +25,7 @@ class Imbecile
|
|||||||
puts item_set
|
puts item_set
|
||||||
puts
|
puts
|
||||||
item_set.follow_symbols.each do |follow_symbol|
|
item_set.follow_symbols.each do |follow_symbol|
|
||||||
|
unless follow_symbol == token_eof
|
||||||
follow_set = item_set.follow_set(follow_symbol)
|
follow_set = item_set.follow_set(follow_symbol)
|
||||||
eval_item_sets << follow_set
|
eval_item_sets << follow_set
|
||||||
end
|
end
|
||||||
@ -32,6 +33,7 @@ class Imbecile
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user