(self, val_or_exp1, exp2, binop='-')
return parser.ExpBinOp(val_or_exp1,
                               lexer.TokSymbol(binop),
                               exp2)
Makes an ExpBinOp equivalent to maxval - exp.

        Args:
          val_or_exp1: a number or an expression node to be the left exp.
          exp2: an expression node to be the right exp.
          binop: a string representing the binary operator.

        Returns:
          The equivalent of ExpBinOp(val_or_exp1, binop, exp2).
Makes an ExpBinOp equivalent to maxval - exp.
Makes an ExpBinOp equivalent to maxval - exp .
def _make_binop(self, val_or_exp1, exp2, binop='-'):
        """Makes an ExpBinOp equivalent to maxval - exp.

        Args:
          val_or_exp1: a number or an expression node to be the left exp.
          exp2: an expression node to be the right exp.
          binop: a string representing the binary operator.

        Returns:
          The equivalent of ExpBinOp(val_or_exp1, binop, exp2).
        """
        if not isinstance(val_or_exp1, parser.Node):
            val_or_exp1 = parser.ExpValue(lexer.TokNumber(str(val_or_exp1)))
        exp2 = parser.ExpValue(exp2)

        return parser.ExpBinOp(val_or_exp1,
                               lexer.TokSymbol(binop),
                               exp2)
def _make_binop ( self , val_or_exp1 , exp2 , binop = '-' ) : if not isinstance ( val_or_exp1 , parser . Node ) : val_or_exp1 = parser . ExpValue ( lexer . TokNumber ( str ( val_or_exp1 ) ) ) exp2 = parser . ExpValue ( exp2 ) return parser . ExpBinOp ( val_or_exp1 , lexer . TokSymbol ( binop ) , exp2 )