CFunctionCallForFurInfixOperator = collections.namedtuple(
'CFunctionCallForFurInfixOperator',
[
+ 'metadata',
'name',
],
)
def transform_infix_operator_without_c_equivalent(accumulators, expression):
return CFunctionCallForFurInfixOperator(
+ metadata=expression.metadata,
name='concatenate',
)
accumulators.operator_set.add(FUR_INFIX_OPERATOR_TO_C_INFIX_OPERATOR[expression.operator])
return CFunctionCallForFurInfixOperator(
+ metadata=expression.metadata,
name=FUR_INFIX_OPERATOR_TO_C_INFIX_OPERATOR[expression.operator].name,
)