summaryrefslogtreecommitdiff
path: root/macros/ASTManagement/%equal_string.sci
blob: 9678f0e0e34109668d67cacea3c201156172c5a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function txt=%equal_string(e)
//overloading function for "equal" type tlist string function
//this is a node of the AST

//fields:
//   expression: "expression" type tlist (the right hand side)
//   lhs       : list of "variable" type tlist and "operation" type tlist //   (the assignment)
//   endsymbol : string (the orginal end-of-instruction symbol (, ; <CR>))
  txt=['Equal'
       '  Expression: '
       '    '+string(e.expression)
       '  Lhs       : '
       '     '+objectlist2string(e.lhs)
       'EndEqual'
      ]
endfunction