make logic stuff public, cleanup

This commit is contained in:
DeltaNedas
2020-11-01 19:35:22 +00:00
parent a13f7f633e
commit cda6a6973d
5 changed files with 31 additions and 36 deletions

View File

@@ -17,9 +17,9 @@ public class LAssembler{
private int lastVar;
/** Maps names to variable IDs. */
ObjectMap<String, BVar> vars = new ObjectMap<>();
public ObjectMap<String, BVar> vars = new ObjectMap<>();
/** All instructions to be executed. */
LInstruction[] instructions;
public LInstruction[] instructions;
public LAssembler(){
//instruction counter
@@ -105,7 +105,7 @@ public class LAssembler{
if(index++ > max) break;
line = line.replace("\t", "").trim();
try{
String[] arr;