projects
/
fur
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add very rudimentary line numbers to exceptions
[fur]
/
transformation.py
diff --git
a/transformation.py
b/transformation.py
index
6a5354b
..
7d47ed4
100644
(file)
--- a/
transformation.py
+++ b/
transformation.py
@@
-61,6
+61,7
@@
CNegationExpression = collections.namedtuple(
CFunctionCallForFurInfixOperator = collections.namedtuple(
'CFunctionCallForFurInfixOperator',
[
CFunctionCallForFurInfixOperator = collections.namedtuple(
'CFunctionCallForFurInfixOperator',
[
+ 'metadata',
'name',
],
)
'name',
],
)
@@
-240,6
+241,7
@@
FUR_INFIX_OPERATOR_TO_C_INFIX_OPERATOR = {
def transform_infix_operator_without_c_equivalent(accumulators, expression):
return CFunctionCallForFurInfixOperator(
def transform_infix_operator_without_c_equivalent(accumulators, expression):
return CFunctionCallForFurInfixOperator(
+ metadata=expression.metadata,
name='concatenate',
)
name='concatenate',
)
@@
-250,6
+252,7
@@
def transform_infix_expression(accumulators, expression):
accumulators.operator_set.add(FUR_INFIX_OPERATOR_TO_C_INFIX_OPERATOR[expression.operator])
return CFunctionCallForFurInfixOperator(
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,
)
name=FUR_INFIX_OPERATOR_TO_C_INFIX_OPERATOR[expression.operator].name,
)