From 06686ba87471cfff538795eeb4897d078b504a6c Mon Sep 17 00:00:00 2001 From: Clément DAVID Date: Thu, 1 Jun 2017 16:24:16 +0000 Subject: Add trycatch parsing --- macros/ASTManagement/%trycatch_string.sci | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 macros/ASTManagement/%trycatch_string.sci (limited to 'macros/ASTManagement/%trycatch_string.sci') diff --git a/macros/ASTManagement/%trycatch_string.sci b/macros/ASTManagement/%trycatch_string.sci new file mode 100644 index 00000000..54441f75 --- /dev/null +++ b/macros/ASTManagement/%trycatch_string.sci @@ -0,0 +1,14 @@ +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) + + txt=['Statements' + ' '+objectlist2string(p.trystat) + 'CatchStatements' + ' '+objectlist2string(p.catchstat) + 'EndProgram' + ] +endfunction -- cgit