[Prev][Next][Index]
No Subject
- Date: Thu, 28 Dec 95 18:21:51 CST
- From: mcchang@Aladdin.ee.nsysu.edu.tw (Ming-Chan Chang)
- Apparently-To: sage-users@extreme.indiana.edu
- Sender: owner-sage-bugs@extreme.indiana.edu
hello,
I am a newer about sage++. I have read Sage++ menu several times, but I still cannot solve
the following problem. Please tell me the solution! Thank you very much!
Problem:
How can I create an new assigned statement "ExitFlag = .TRUE." to ".dep" for Fortran Language?
ExitFlag: a logical variable
I wrote some statements to do that:
SgSymbol *tmpsymbol;
SgExpression *refsymbol;
tmpsymbol = new SgVariableSymb("ExitFlag", *SgTypeBool());
tmpsymbol->declareTheSymbol(*func); // func points to the function
refsymbol = new SgVarRefExp(*tmpsymbol);
stmt = new SgAssignStmt(*refsymbol, ????);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
How can I create the content of stmt with "ExitFlag = .TRUE."?
Please mail to : mcchang@aladdin.ee.nsysu.edu.tw