Wrote /root/JavaX-Caches/tmp_1202181607/main.java - 1054 bytes (written=1054, should be 1054)
javac=0, ecj=1, useJarBot=0
Checking ECJ at port 4898 at 127.0.0.1
/root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_900035335 /root/JavaX-Caches/tmp_1202181607/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1202181607/main.java:1: error: class, interface, or enum expected
static void tok_listComprehensions(L tok) {
^
/root/JavaX-Caches/tmp_1202181607/main.java:3: error: class, interface, or enum expected
for (int i = 1; i < l(tok); i += 2) try {
^
/root/JavaX-Caches/tmp_1202181607/main.java:3: error: class, interface, or enum expected
for (int i = 1; i < l(tok); i += 2) try {
^
/root/JavaX-Caches/tmp_1202181607/main.java:3: error: class, interface, or enum expected
for (int i = 1; i < l(tok); i += 2) try {
^
/root/JavaX-Caches/tmp_1202181607/main.java:5: error: class, interface, or enum expected
int iOp = indexOfAny(tok, i+2, "?", ":", "in", "[", "]");
^
/root/JavaX-Caches/tmp_1202181607/main.java:6: error: class, interface, or enum expected
if (iOp < 0) ret;
^
/root/JavaX-Caches/tmp_1202181607/main.java:7: error: class, interface, or enum expected
if (!eqOneOf(tok.get(iOp), ":", "in")) continue; // not a list comprehension
^
/root/JavaX-Caches/tmp_1202181607/main.java:8: error: class, interface, or enum expected
if (eqGet(tok, iOp+2, ".")) continue; // "in." (in is a variable name)
^
/root/JavaX-Caches/tmp_1202181607/main.java:10: error: class, interface, or enum expected
Map bracketMap = getBracketMap(tok); // XXX - optimize
^
/root/JavaX-Caches/tmp_1202181607/main.java:12: error: class, interface, or enum expected
S type = joinSubList(tok, i+2, iOp-3), id = tok.get(iOp-2);
^
/root/JavaX-Caches/tmp_1202181607/main.java:13: error: class, interface, or enum expected
int j = scanOverExpression(tok, bracketMap, iOp+2, "|");
^
/root/JavaX-Caches/tmp_1202181607/main.java:14: error: class, interface, or enum expected
S exp = join(subList(tok, iOp+2, j));
^
/root/JavaX-Caches/tmp_1202181607/main.java:15: error: class, interface, or enum expected
j += 2;
^
/root/JavaX-Caches/tmp_1202181607/main.java:16: error: class, interface, or enum expected
int k = scanOverExpression(tok, bracketMap, j, "]");
^
/root/JavaX-Caches/tmp_1202181607/main.java:17: error: class, interface, or enum expected
S where = join(subList(tok, j, k));
^
/root/JavaX-Caches/tmp_1202181607/main.java:18: error: class, interface, or enum expected
++k;
^
/root/JavaX-Caches/tmp_1202181607/main.java:20: error: class, interface, or enum expected
S code = "filter(" + exp + ", func(" + type + " " + id + ") -> Bool { " + where + " })";
^
/root/JavaX-Caches/tmp_1202181607/main.java:21: error: class, interface, or enum expected
replaceTokens(tok, i, k, code);
^
/root/JavaX-Caches/tmp_1202181607/main.java:22: error: class, interface, or enum expected
reTok(tok, i, k);
^
/root/JavaX-Caches/tmp_1202181607/main.java:23: error: class, interface, or enum expected
} on fail {
^
/root/JavaX-Caches/tmp_1202181607/main.java:25: error: class, interface, or enum expected
}
^
21 errors