Exemple #1
0
        public void Accept(CIL_Data data)
        {
            Data += "\t buffer:             .space    65536 \n" +
                    "\t zero:               .byte     0 \n" +
                    "\t strsubstrexception: .asciiz \"Substring index exception\" \n";

            foreach (var strVar in data._stringVars.Values)
            {
                Data += strVar + ":\t .asciiz \t" + "\"" + data._stringVars[strVar] + "\"\n";
            }
        }
Exemple #2
0
        public void Accept(CIL_Data data)
        {
            Data += "\nbuffer:             .space    65536 \n" +
                    "zero:               .byte     0 \n" +
                    "strsubstrexception: .asciiz \"Substring index exception\" \n" +
                    "divisionZero:       .asciiz \"Division by Zero Exception\" \n\n";

            foreach (var strVar in data._stringVars.Keys)
            {
                Data += data._stringVars[strVar] + ":\t .asciiz \t" + "\"" + strVar + "\"\n";
            }
        }
Exemple #3
0
 public CIL_Program(CIL_Code code, CIL_Data data, CIL_Types types)
 {
     Code  = code;
     Data  = data;
     Types = types;
 }