def p_expression_unop_uminus(p): 'expression : MINUS expression %prec UMINUS' error = codegen.unop('uminus') if error: errors.append(error.format(lineno)) raise SyntaxError
def p_expression_unop_not(p): '''expression : NOT expression''' error = codegen.unop(p[1]) if error: errors.append(error.format(lineno)) raise SyntaxError