You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing strings that contain the result of epsilon productions with EarleyParser,
the parsed subtree containing the nullable nonterminal has an empty children list,
as if the nonterminal was a terminal.
(see description of Derivation Trees at https://www.fuzzingbook.org/html/GrammarFuzzer.html#Derivation-Trees)
To Reproduce
Steps to reproduce the behavior:
Run
from fuzzingbook.Parser import EarleyParser
next(EarleyParser({"<start>": [""]}).parse(""))
The return value is
('<start>', [])
Expected behavior
The return value is expected to be
When parsing strings that contain the result of epsilon productions with EarleyParser,
the parsed subtree containing the nullable nonterminal has an empty children list,
as if the nonterminal was a terminal.
(see description of Derivation Trees at https://www.fuzzingbook.org/html/GrammarFuzzer.html#Derivation-Trees)
To Reproduce
Steps to reproduce the behavior:
Run
The return value is
Expected behavior
The return value is expected to be
Additional context
This issue might cause #153
The text was updated successfully, but these errors were encountered: