[Next][Index]

No Subject



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