diff options
author | siddhu8990 | 2017-06-30 11:35:55 +0530 |
---|---|---|
committer | siddhu8990 | 2017-06-30 11:35:55 +0530 |
commit | bee6bf6e37f6c36fb18b6132702e1528b7edafc2 (patch) | |
tree | 1090789e0205f0054c6b31b356b9417c8707176b /macros/ASTManagement/AST_ParseIfExprStruct.sci | |
parent | 2c3b9e1055c8c9dfe874df3b7743c4a765042316 (diff) | |
parent | 7325b038e06f1571402a63caef2d75db30bd13c1 (diff) | |
download | scilab2c-bee6bf6e37f6c36fb18b6132702e1528b7edafc2.tar.gz scilab2c-bee6bf6e37f6c36fb18b6132702e1528b7edafc2.tar.bz2 scilab2c-bee6bf6e37f6c36fb18b6132702e1528b7edafc2.zip |
Matrix declaration modified
Diffstat (limited to 'macros/ASTManagement/AST_ParseIfExprStruct.sci')
-rw-r--r-- | macros/ASTManagement/AST_ParseIfExprStruct.sci | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/macros/ASTManagement/AST_ParseIfExprStruct.sci b/macros/ASTManagement/AST_ParseIfExprStruct.sci index 3ed1b5b6..2bfb08dd 100644 --- a/macros/ASTManagement/AST_ParseIfExprStruct.sci +++ b/macros/ASTManagement/AST_ParseIfExprStruct.sci @@ -98,6 +98,7 @@ while (flagendpop == 0) if (ASTIfExpType=='if') if (IfExprField=='Expression:') flagendpop = 1; + //PrintStringInfo('hello dere '+IfExprField,ReportFileName,'file','y'); // Pop Again the If tag from the AST. IfExprField = AST_PopASTStack(); elseif (IfExprField=='Operands:') @@ -117,10 +118,14 @@ while (flagendpop == 0) elseif (ASTIfExpType=='elseif') if (IfExprField=='Else If Expression') flagendpop = 1; + //IfExprField = AST_PopASTStack(); else - if (IfExprField=='&&') + if (IfExprField=='&&' | IfExprField=='||') NOp = NOp + 1; Op(NOp) = IfExprField; + elseif (IfExprField=='Operands:') + flagendpop = 0; + g = AST_PopASTStack(); else NIfCondArg = NIfCondArg + 1; IfCondArg(NIfCondArg) = IfExprField; @@ -129,7 +134,9 @@ while (flagendpop == 0) end end end + if flagendpop == 0 IfExprField = AST_PopASTStack(); + end PrintStringInfo('operators are '+IfExprField,ReportFileName,'file','y'); end |