toDefinition

Converts a core operator to the representation consumed by parser-impl.

Throws

if the name is empty or the priority is outside 1..1200