#NEWLINE# def p_factor2( p ) : #NEWLINE# #INDENT# ' factor : PLUS factor ' #NEWLINE# op = ast . UAdd ( ) #NEWLINE# operand = p [ 2 ] #NEWLINE# node = ast . UnaryOp ( op = op , operand = operand ) #NEWLINE# p [ 0 ] = node