Skip to content

Commit 4ea615d

Browse files
authored
Add files via upload
1 parent bf7eb67 commit 4ea615d

File tree

4 files changed

+198
-122
lines changed

4 files changed

+198
-122
lines changed

com/devkev/devscript/raw/Block.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ public class Block { //So stupid...
2222
private byte stack = 0;
2323

2424
public boolean loop = false;
25-
ArrayList<Command> cached = new ArrayList<Command>(0);
25+
ArrayList<Command> cached = new ArrayList<>();
26+
// ArrayList<CompiledCommand> compiled = new ArrayList<CompiledCommand>(0);
2627
int exitCode = DONE;
2728

29+
class CompiledCommand {
30+
Command command;
31+
ArrayList<Object> args;
32+
}
33+
2834
Block(StringBuilder blockCode, Block parent) {
2935
this.blockCode = blockCode;
3036

@@ -57,13 +63,19 @@ public void beginLoop() {
5763

5864
public void endLoop(boolean clearcache) {
5965
loop = false;
60-
clearCache();
6166
}
6267

6368
public synchronized boolean isAlive() {
6469
return alive;
6570
}
6671

72+
// public void addCompiledCommand(Command command, ArrayList<Object> args) {
73+
// CompiledCommand c = new CompiledCommand();
74+
// c.args = args;
75+
// c.command = command;
76+
// compiled.add(c); //Index would be the "line"
77+
// }
78+
6779
void addToCache(Command c) {
6880
for(int i = 0; i < cached.size(); i++) {
6981
if(c.equals(cached.get(i))) return;

com/devkev/devscript/raw/ConsoleMain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static void main(String[] args) throws IOException {
6363
Process p = new Process(true);
6464
p.addSystemOutput();
6565
p.setInput(System.in);
66-
66+
6767
if(filePath != null) {
6868
p.execute(new File(args[1]), true);
6969
} else if(scriptToExecute != null) {

com/devkev/devscript/raw/Library.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public abstract class Library {
66

7-
public final String COMPATIBLE_VERSION = "1.8.1";
7+
public final String COMPATIBLE_VERSION = "1.9.1";
88
private final ArrayList<Command> collection = new ArrayList<Command>();
99
private String name = "";
1010

0 commit comments

Comments
 (0)