The equality of two Compounds relies on checking the equality of the corresponding members, and when there is a loop in the membership relations (e.g. A = B, B = (A)) the function will cause a RecursionError.
Quantifier and Lookahead lack a __eq__ which should check the equality of their attributes.
Compound
s relies on checking the equality of the corresponding members, and when there is a loop in the membership relations (e.g. A = B, B = (A)) the function will cause aRecursionError
.Quantifier
andLookahead
lack a__eq__
which should check the equality of their attributes.