summaryrefslogtreecommitdiff
path: root/macros/ASTManagement/%trycatch_string.sci
blob: fc78759544c3f54cff9a51d750c0f51cecef7a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function txt=%trycatch_string(p)
//overloading function for "trycatch" type tlist string function
//
//fields:
//      trystat   : list('EOL') (the instructions list)
//      catchstat : list('EOL') (the instructions list on error)

//  FIXME: catch statement should be handled : how ?
//  txt=['Statements'
//       '    '+objectlist2string(p.trystat)
//       'CatchStatements'
//       '    '+objectlist2string(p.catchstat)
//       'EndProgram'
//      ]

  txt = objectlist2string(p.trystat);
endfunction