Neuer Versuch StringLiteral
This commit is contained in:
parent
5da4ed534d
commit
8da8eb7d28
@ -2,6 +2,7 @@
|
||||
package de.dhbwstuttgart.syntaxtree.statement;
|
||||
import de.dhbwstuttgart.typeinference.Menge;
|
||||
|
||||
|
||||
// ino.end
|
||||
// ino.module.StringLiteral.8653.import
|
||||
import java.util.Hashtable;
|
||||
@ -107,15 +108,15 @@ public class StringLiteral extends Literal
|
||||
|
||||
@Override
|
||||
public InstructionList genByteCode(ClassGen cg) {
|
||||
InstructionList il = new InstructionList();
|
||||
|
||||
InstructionFactory _factory = new InstructionFactory(cg, cg.getConstantPool());
|
||||
|
||||
InstructionList il = new InstructionList();
|
||||
|
||||
il.append(_factory.ASTORE_1, _factory.createNew(string));
|
||||
|
||||
|
||||
|
||||
return il;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
// ino.end
|
||||
|
Loading…
Reference in New Issue
Block a user