Neuer Versuch StringLiteral

This commit is contained in:
Fikus, Evelyn (WWI2012D) 2015-06-22 16:22:12 +02:00
parent 5da4ed534d
commit 8da8eb7d28

View File

@ -2,6 +2,7 @@
package de.dhbwstuttgart.syntaxtree.statement; package de.dhbwstuttgart.syntaxtree.statement;
import de.dhbwstuttgart.typeinference.Menge; import de.dhbwstuttgart.typeinference.Menge;
// ino.end // ino.end
// ino.module.StringLiteral.8653.import // ino.module.StringLiteral.8653.import
import java.util.Hashtable; import java.util.Hashtable;
@ -107,15 +108,15 @@ public class StringLiteral extends Literal
@Override @Override
public InstructionList genByteCode(ClassGen cg) { public InstructionList genByteCode(ClassGen cg) {
InstructionList il = new InstructionList();
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool()); InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
InstructionList il = new InstructionList();
il.append(_factory.ASTORE_1, _factory.createNew(string)); il.append(_factory.ASTORE_1, _factory.createNew(string));
return il; return il;
} }
} }
// ino.end // ino.end