summaryrefslogtreecommitdiff
path: root/macros/ASTManagement/_operation_string.sci
diff options
context:
space:
mode:
authoryash11122017-07-07 21:20:49 +0530
committeryash11122017-07-07 21:20:49 +0530
commit3f52712f806fbd80d66dfdcaff401e5cf94dcca4 (patch)
treea8333b8187cb44b505b9fe37fc9a7ac8a1711c10 /macros/ASTManagement/_operation_string.sci
downloadscilab2c-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.tar.gz
scilab2c-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.tar.bz2
scilab2c-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.zip
sci2c arduino updated
Diffstat (limited to 'macros/ASTManagement/_operation_string.sci')
-rw-r--r--macros/ASTManagement/_operation_string.sci13
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/ASTManagement/_operation_string.sci b/macros/ASTManagement/_operation_string.sci
new file mode 100644
index 00000000..84f5ce3c
--- /dev/null
+++ b/macros/ASTManagement/_operation_string.sci
@@ -0,0 +1,13 @@
+function txt=%operation_string(O)
+//overloading function for "operation" type tlist string function
+//this is a node of the AST
+//fields:
+// operands: a list
+// operator: a string
+ txt=['Operation'
+ ' Operands:'
+ ' '+objectlist2string(O.operands)
+ ' Operator: '+O.operator
+ 'EndOperation'
+ ]
+endfunction \ No newline at end of file