The sherpa.models.op module

Operator-related routines for the model and parameter classes.

Symbols

NO_PRECEDENCE

Represent "no precedence".

lprec

Represent the precedence for the left-hand side of a binary operator.

rprec

Should the left-hand side of a binary operator be wrapped by brackets?

Functions

get_precedences_op(op)

Return precedences for the operation.

get_precedence_expr(expr)

Return precedence for the expression.

get_precedence_lhs(lstr, lp, p, a)

Return the string to use for the left side of a binary operator.

get_precedence_rhs(rstr, opstr, rp, p)

Return the string to use for the right side of a binary operator.