File tree Expand file tree Collapse file tree 4 files changed +198
-122
lines changed
Expand file tree Collapse file tree 4 files changed +198
-122
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 44
55public 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
You can’t perform that action at this time.
0 commit comments