erikrose / parsimonious

The fastest pure-Python PEG parser I can muster
MIT License
1.79k stars 126 forks source link

IncompleteParseError #238

Open TheBicPen opened 10 months ago

TheBicPen commented 10 months ago

I'm getting an IncompleteParseError creating a Grammar object on a very simple grammar that seems valid to me:

IncompleteParseError
Rule 'rules' matched in its entirety, but it didn't consume all the text. The non-matching portion of the text begins with '/ "5"
    ' (line 2, column 21).

And the grammar:

Grammar(r"""
    value = "[" "]" / "5"
    """
)