fix some isbpl.java
This commit is contained in:
parent
f377560e21
commit
502632aeb2
1 changed files with 7 additions and 8 deletions
|
@ -272,7 +272,6 @@ public class ISBPL {
|
|||
case "reload":
|
||||
func = (File file) -> {
|
||||
String filepath = getFilePathForInclude((Stack<ISBPLObject>) stack, file);
|
||||
if(included.contains(filepath)) {
|
||||
File f = new File(filepath).getAbsoluteFile();
|
||||
try {
|
||||
interpret(f, readFile(f), stack);
|
||||
|
@ -280,7 +279,6 @@ public class ISBPL {
|
|||
catch (IOException e) {
|
||||
throw new ISBPLError("IO", "Couldn't find file " + filepath + " required by include keyword.");
|
||||
}
|
||||
}
|
||||
};
|
||||
break;
|
||||
case "include":
|
||||
|
@ -794,6 +792,7 @@ public class ISBPL {
|
|||
objects[i++] = new ISBPLObject(getType("array"), strings.toArray(new ISBPLObject[0]));
|
||||
}
|
||||
ISBPLObject array = new ISBPLObject(getType("array"), objects);
|
||||
stack.push(array);
|
||||
};
|
||||
break;
|
||||
case "stacksize":
|
||||
|
|
Loading…
Add table
Reference in a new issue