Wrote /root/JavaX-Caches/tmp_1753768955/main.java - 3388 bytes (written=3388, should be 3388) 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_1032585977 /root/JavaX-Caches/tmp_1753768955/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_1753768955/main.java:1: error: class, interface, or enum expected static bool flexMatch_debug; ^ /root/JavaX-Caches/tmp_1753768955/main.java:3: error: class, interface, or enum expected static bool flexMatch(S pat, S s) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:5: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:9: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:13: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:17: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:21: error: class, interface, or enum expected for (int i = 0; i < l(tokpat); i++) ^ /root/JavaX-Caches/tmp_1753768955/main.java:21: error: class, interface, or enum expected for (int i = 0; i < l(tokpat); i++) ^ /root/JavaX-Caches/tmp_1753768955/main.java:21: error: class, interface, or enum expected for (int i = 0; i < l(tokpat); i++) ^ /root/JavaX-Caches/tmp_1753768955/main.java:24: error: class, interface, or enum expected if (joinBrackets) tokfull = joinBrackets(tokfull); ^ /root/JavaX-Caches/tmp_1753768955/main.java:25: error: class, interface, or enum expected L<S> tok = codeTokens(tokfull); ^ /root/JavaX-Caches/tmp_1753768955/main.java:26: error: class, interface, or enum expected new BitSet bla; ^ /root/JavaX-Caches/tmp_1753768955/main.java:27: error: class, interface, or enum expected new BitSet bla2; ^ /root/JavaX-Caches/tmp_1753768955/main.java:28: error: class, interface, or enum expected if (!flexMatch_impl(tokpat, 0, tok, 0, bla, bla2)) ret false; ^ /root/JavaX-Caches/tmp_1753768955/main.java:29: error: class, interface, or enum expected if (m != null) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:31: error: class, interface, or enum expected for (int i = 1; i < l(tokfull); i += 2) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:31: error: class, interface, or enum expected for (int i = 1; i < l(tokfull); i += 2) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:31: error: class, interface, or enum expected for (int i = 1; i < l(tokfull); i += 2) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:34: error: class, interface, or enum expected while (j < l(tokfull) && bla.get(j/2)) j += 2; ^ /root/JavaX-Caches/tmp_1753768955/main.java:35: error: class, interface, or enum expected l.add(join(subList(tokfull, i, j-1))); ^ /root/JavaX-Caches/tmp_1753768955/main.java:36: error: class, interface, or enum expected i = j-2; ^ /root/JavaX-Caches/tmp_1753768955/main.java:37: error: class, interface, or enum expected } else if (bla2.get(i/2)) ^ /root/JavaX-Caches/tmp_1753768955/main.java:39: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:48: error: class, interface, or enum expected if (ipat >= l(pat)) ^ /root/JavaX-Caches/tmp_1753768955/main.java:50: error: class, interface, or enum expected S t = pat.get(ipat); ^ /root/JavaX-Caches/tmp_1753768955/main.java:52: error: class, interface, or enum expected if (eq(t, "*")) { // the flex wildcard (0 or more tokens) ^ /root/JavaX-Caches/tmp_1753768955/main.java:54: error: class, interface, or enum expected if (flexMatch_impl(pat, ipat+1, tok, itok, bla, bla2)) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:56: error: class, interface, or enum expected ret true; ^ /root/JavaX-Caches/tmp_1753768955/main.java:57: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:60: error: class, interface, or enum expected if (itok < l(tok)) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:62: error: class, interface, or enum expected if (flexMatch_impl(pat, ipat, tok, itok+1, bla, bla2)) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:64: error: class, interface, or enum expected ret true; // success, leave mark ^ /root/JavaX-Caches/tmp_1753768955/main.java:65: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:69: error: class, interface, or enum expected bla.clear(itok); // fail, undo marking ^ /root/JavaX-Caches/tmp_1753768955/main.java:70: error: class, interface, or enum expected ret false; ^ /root/JavaX-Caches/tmp_1753768955/main.java:71: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:75: error: class, interface, or enum expected ret false; ^ /root/JavaX-Caches/tmp_1753768955/main.java:76: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:79: error: class, interface, or enum expected if (flexMatch_impl(pat, ipat+1, tok, itok+1, bla, bla2)) ^ /root/JavaX-Caches/tmp_1753768955/main.java:81: error: class, interface, or enum expected bla.clear(itok); // fail, undo marking ^ /root/JavaX-Caches/tmp_1753768955/main.java:82: error: class, interface, or enum expected ret false; ^ /root/JavaX-Caches/tmp_1753768955/main.java:83: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:85: error: class, interface, or enum expected if (t.startsWith("(") && t.endsWith(")")) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:89: error: class, interface, or enum expected if (!contains(t, realt)) false; ^ /root/JavaX-Caches/tmp_1753768955/main.java:91: error: class, interface, or enum expected L<S> list = splitAt(dropFirstAndLast(t), "|"); ^ /root/JavaX-Caches/tmp_1753768955/main.java:92: error: class, interface, or enum expected if (flexMatch_debug) ^ /root/JavaX-Caches/tmp_1753768955/main.java:94: error: class, interface, or enum expected if (!contains(list, realt)) false; ^ /root/JavaX-Caches/tmp_1753768955/main.java:95: error: class, interface, or enum expected bla2.set(itok); ^ /root/JavaX-Caches/tmp_1753768955/main.java:96: error: class, interface, or enum expected } else if (neq(realt, t)) { ^ /root/JavaX-Caches/tmp_1753768955/main.java:99: error: class, interface, or enum expected ret false; ^ /root/JavaX-Caches/tmp_1753768955/main.java:100: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1753768955/main.java:105: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_1753768955/main.java:107: error: class, interface, or enum expected false; ^ /root/JavaX-Caches/tmp_1753768955/main.java:108: error: class, interface, or enum expected } ^ 56 errors