summaryrefslogtreecommitdiff
path: root/macros/ASTManagement/AST_ParseIfExprStruct.sci
diff options
context:
space:
mode:
authorukashanoor2017-06-27 12:40:50 +0530
committerukashanoor2017-06-27 12:40:50 +0530
commit956aa2b9bcf6171234bc9749acbfabf8660beade (patch)
treeffc914d9f15bbcce2154c4bcc702cb691004250f /macros/ASTManagement/AST_ParseIfExprStruct.sci
parent785e19f097f7ca1964edaf159c9adfe2eda733b5 (diff)
downloadScilab2C_fossee_old-956aa2b9bcf6171234bc9749acbfabf8660beade.tar.gz
Scilab2C_fossee_old-956aa2b9bcf6171234bc9749acbfabf8660beade.tar.bz2
Scilab2C_fossee_old-956aa2b9bcf6171234bc9749acbfabf8660beade.zip
matrix complete
Diffstat (limited to 'macros/ASTManagement/AST_ParseIfExprStruct.sci')
-rw-r--r--macros/ASTManagement/AST_ParseIfExprStruct.sci9
1 files changed, 8 insertions, 1 deletions
diff --git a/macros/ASTManagement/AST_ParseIfExprStruct.sci b/macros/ASTManagement/AST_ParseIfExprStruct.sci
index 3ed1b5b..2bfb08d 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