I might be the first person to ever equality-test pyparsing grammars, but I need to for pyparsing_helper to work right, and it looks like ParserElement.__eq__ wasn't written to support that.
In : Literal('a') == "a"
In : Literal('a') == Literal('a')
A minor change to ParserElement.__eq__ will fix that.
Log in to post a comment.