Function registerOperation

Registers an operation definition with the given identifier.

void registerOperation (
  string name,
  OpDef def
);