diff options
author | siddhu8990 | 2017-05-04 20:07:20 +0530 |
---|---|---|
committer | siddhu8990 | 2017-05-04 20:07:20 +0530 |
commit | 5f17dffbfa6d84aee23f7946cfa95e9e5c9995b7 (patch) | |
tree | 9c40edea8cb8a8e8f78f2823a5a54855bcaf6447 /2.3-1/macros/ASTManagement | |
parent | 472b2e7ebbd2d8b3ecd00b228128aa8a0bd3f920 (diff) | |
download | Scilab2C-5f17dffbfa6d84aee23f7946cfa95e9e5c9995b7.tar.gz Scilab2C-5f17dffbfa6d84aee23f7946cfa95e9e5c9995b7.tar.bz2 Scilab2C-5f17dffbfa6d84aee23f7946cfa95e9e5c9995b7.zip |
Toolbox working with scilab 6.0
Diffstat (limited to '2.3-1/macros/ASTManagement')
-rw-r--r-- | 2.3-1/macros/ASTManagement/%operation_string.sci | 13 | ||||
-rw-r--r-- | 2.3-1/macros/ASTManagement/_operation_string.sci | 13 | ||||
-rw-r--r-- | 2.3-1/macros/ASTManagement/lib | bin | 0 -> 1992 bytes | |||
-rw-r--r-- | 2.3-1/macros/ASTManagement/names | 57 |
4 files changed, 83 insertions, 0 deletions
diff --git a/2.3-1/macros/ASTManagement/%operation_string.sci b/2.3-1/macros/ASTManagement/%operation_string.sci new file mode 100644 index 00000000..84f5ce3c --- /dev/null +++ b/2.3-1/macros/ASTManagement/%operation_string.sci @@ -0,0 +1,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
\ No newline at end of file diff --git a/2.3-1/macros/ASTManagement/_operation_string.sci b/2.3-1/macros/ASTManagement/_operation_string.sci new file mode 100644 index 00000000..84f5ce3c --- /dev/null +++ b/2.3-1/macros/ASTManagement/_operation_string.sci @@ -0,0 +1,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
\ No newline at end of file diff --git a/2.3-1/macros/ASTManagement/lib b/2.3-1/macros/ASTManagement/lib Binary files differnew file mode 100644 index 00000000..e6a96926 --- /dev/null +++ b/2.3-1/macros/ASTManagement/lib diff --git a/2.3-1/macros/ASTManagement/names b/2.3-1/macros/ASTManagement/names new file mode 100644 index 00000000..ba4143a2 --- /dev/null +++ b/2.3-1/macros/ASTManagement/names @@ -0,0 +1,57 @@ +%comment_string +%cste_string +%equal_string +%for_string +%funcall_string +%ifthenel_string +%operatio_string +%operation_string +%program_p +%program_string +%variable_string +%while_string +AST2Ccode +AST_CheckCommonInOutArgs +AST_CheckLastFunc +AST_CheckLineLength +AST_CheckPrecSpecifier +AST_DisplayStack +AST_ExtractNameAndScope +AST_GetASTFile +AST_GetFuncallPrm +AST_GetPrecAndLhsArg +AST_HandleEOL +AST_HandleEndFor +AST_HandleEndGenFun +AST_HandleEndProgram +AST_HandleEndWhile +AST_HandleFor +AST_HandleForStatem +AST_HandleHeader +AST_HandleIfElse +AST_HandleWhileExpr +AST_HandleWhileStatem +AST_ParseEqualStruct +AST_ParseFuncallStruct +AST_ParseIfExprStruct +AST_ParseOperStruct +AST_PopASTStack +AST_PushASTStack +AST_ReadASTHeader +AST_ReadEqualRhsNames +GenOutArgNames +Operator2FunName +SciFile2ASTFile +_comment_string +_cste_string +_equal_string +_for_string +_funcall_string +_ifthenel_string +_operatio_string +_operation_string +_program_p +_program_string +_variable_string +_while_string +objectlist2string |