grammatica.grammar.CharRange.equals#

grammar.CharRange.equals(other, check_quantifier=True)[source]#

Check equality with another value.

Parameters:
  • other (Any) – Value to compare against.

  • check_quantifier (bool, optional) – Include the quantifier in the comparison. Defaults to True.

Returns:

bool – True if the values are equal, False otherwise.