Rewrite `Operator` type

Rename `op_t` to `Operator`. Remove the `compare_operators` function
(just compare the precedence directly). Replace the type flags with a
unary bool, since that's all that matters anyway.