summaryrefslogtreecommitdiff
path: root/macros/ASTManagement/%operatio_string.sci
blob: 8421a3f4aff1d9064953084b3a6c883abec375dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function txt=%operatio_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