Comparator Rules Page

Precedence tiers

  1. (keyword, old_type, new_type)

  2. keyword

  3. (old_type, new_type)

  4. old_type or new_type (single-sided)

  5. default comparator

Declaration

Add entries to Config.COMPARE_RULES; resolution is performed by CompareRules.get_comparator().

Extending

  1. Implement a Compare subclass.

  2. Register it in the rules table.

  3. (Optional) expose it via ConfigMaker so convenience constructors pick it up.