summaryrefslogtreecommitdiff
path: root/macros/ASTManagement/%operation_string.sci
blob: 84f5ce3c8743ab8661ba0839f226a2f27f18072a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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