erikrose / parsimonious

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

Should BadGrammar, Node be documented? #101

Closed ramiro closed 7 years ago

ramiro commented 8 years ago

BadGrammar isn't being imported in __init__.py together will the other exceptions.

Something similar happens with the Node class but I'm unsure it should be there. Also, it'd neat to have it's text method documented.

erikrose commented 7 years ago

Good catch! I'll fix the BadGrammar thing. Node shouldn't need to be constructed by the end-user, so they shouldn't need direct access to it. But they can go digging around in the submodules if they want if for some arcane reason.

As far as the text method, does this not count?

"""Return the text this node matched."""

Cheers!