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

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

/root/JavaX-Caches/tmp_803936973/main.java:1: error: class, interface, or enum expected sclass RuleEngine { ^ /root/JavaX-Caches/tmp_803936973/main.java:3: error: class, interface, or enum expected Map<S, O> phrasesWordTree = wordTree(); ^ /root/JavaX-Caches/tmp_803936973/main.java:4: error: class, interface, or enum expected Clusters<S> clusters = ciClusters(); ^ /root/JavaX-Caches/tmp_803936973/main.java:5: error: class, interface, or enum expected new Prolog prolog; ^ /root/JavaX-Caches/tmp_803936973/main.java:7: error: class, interface, or enum expected *(S program) { ^ /root/JavaX-Caches/tmp_803936973/main.java:9: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:13: error: class, interface, or enum expected runProgram(program); ^ /root/JavaX-Caches/tmp_803936973/main.java:14: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:18: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:22: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:28: error: class, interface, or enum expected L<S> programLines = tlftj(program); ^ /root/JavaX-Caches/tmp_803936973/main.java:32: error: class, interface, or enum expected for (S s : programLines) { ^ /root/JavaX-Caches/tmp_803936973/main.java:34: error: class, interface, or enum expected if (p != null) { ^ /root/JavaX-Caches/tmp_803936973/main.java:37: error: class, interface, or enum expected L<S> args = p.b; ^ /root/JavaX-Caches/tmp_803936973/main.java:38: error: class, interface, or enum expected if (eqic(f, "assert")) ^ /root/JavaX-Caches/tmp_803936973/main.java:40: error: class, interface, or enum expected else if (swic(f, "assert_")) { ^ /root/JavaX-Caches/tmp_803936973/main.java:43: error: class, interface, or enum expected else if (eqic(f, "assert_parse")) ^ /root/JavaX-Caches/tmp_803936973/main.java:45: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_803936973/main.java:47: error: class, interface, or enum expected } else if (eqic(f, "fact_question_answer_upperCaseVars")) ^ /root/JavaX-Caches/tmp_803936973/main.java:52: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_803936973/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:56: error: class, interface, or enum expected if (eqic(second(tok), "assert")) { ^ /root/JavaX-Caches/tmp_803936973/main.java:58: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_803936973/main.java:59: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:62: error: class, interface, or enum expected if (i >= 0) { ^ /root/JavaX-Caches/tmp_803936973/main.java:64: error: class, interface, or enum expected int j = indexOf(left, "+"); ^ /root/JavaX-Caches/tmp_803936973/main.java:65: error: class, interface, or enum expected if (j >= 0) { ^ /root/JavaX-Caches/tmp_803936973/main.java:70: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_803936973/main.java:71: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:76: error: class, interface, or enum expected if (eqic(getSingletonOpt(tok), "rewrite")) ^ /root/JavaX-Caches/tmp_803936973/main.java:79: error: class, interface, or enum expected if (l(tok) == 2 && isIdentifier(first(tok)) && isQuoted(second(tok))) ^ /root/JavaX-Caches/tmp_803936973/main.java:82: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_803936973/main.java:83: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:89: error: class, interface, or enum expected continue; ^ /root/JavaX-Caches/tmp_803936973/main.java:90: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:93: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:98: error: class, interface, or enum expected pnlStruct(facts); ^ /root/JavaX-Caches/tmp_803936973/main.java:99: error: class, interface, or enum expected print(); ^ /root/JavaX-Caches/tmp_803936973/main.java:101: error: class, interface, or enum expected print("Clusters: " + sfu(clusters)); ^ /root/JavaX-Caches/tmp_803936973/main.java:102: error: class, interface, or enum expected print("Phrases: " + sfu(phrasesWordTree)); ^ /root/JavaX-Caches/tmp_803936973/main.java:103: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:107: error: class, interface, or enum expected ret nempties(translateUsingWordTreeC(tok, phrasesWordTree)); ^ /root/JavaX-Caches/tmp_803936973/main.java:108: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:113: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_803936973/main.java:115: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:120: error: class, interface, or enum expected p.code(dontPrint("to prolog: ", squareBracket(toProlog(q)))); ^ /root/JavaX-Caches/tmp_803936973/main.java:121: error: class, interface, or enum expected L<Lisp> out = p.rewrite(); ^ /root/JavaX-Caches/tmp_803936973/main.java:123: error: class, interface, or enum expected L<S> lines = map nlUnparse(out); ^ /root/JavaX-Caches/tmp_803936973/main.java:124: error: class, interface, or enum expected L<S> answers = startingWithEndingWith_drop(lines, "answer is [", "]"); ^ /root/JavaX-Caches/tmp_803936973/main.java:125: error: class, interface, or enum expected if (l(answers) == 1 && eqic(first(answers), a)) ^ /root/JavaX-Caches/tmp_803936973/main.java:127: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_803936973/main.java:129: error: class, interface, or enum expected print("FAIL answer: " + q + " -> " + first(answers) + " - expected: " + a); ^ /root/JavaX-Caches/tmp_803936973/main.java:130: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:135: error: class, interface, or enum expected ret s; ^ /root/JavaX-Caches/tmp_803936973/main.java:136: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:140: error: class, interface, or enum expected facts.add(tok); ^ /root/JavaX-Caches/tmp_803936973/main.java:141: error: class, interface, or enum expected prolog.code(dontPrint("to prolog: ", squareBracket(factToProlog(tok)))); ^ /root/JavaX-Caches/tmp_803936973/main.java:142: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:146: error: class, interface, or enum expected S s = first(args); ^ /root/JavaX-Caches/tmp_803936973/main.java:147: error: class, interface, or enum expected L<S> parsed = parseFact(s); ^ /root/JavaX-Caches/tmp_803936973/main.java:148: error: class, interface, or enum expected L<S> expected = dropFirst(args); ^ /root/JavaX-Caches/tmp_803936973/main.java:149: error: class, interface, or enum expected if (eq(parsed, expected)) ^ /root/JavaX-Caches/tmp_803936973/main.java:151: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_803936973/main.java:153: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:157: error: class, interface, or enum expected ret factToProlog(tok); ^ /root/JavaX-Caches/tmp_803936973/main.java:158: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:162: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:166: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:170: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_803936973/main.java:174: error: class, interface, or enum expected this; ^ /root/JavaX-Caches/tmp_803936973/main.java:175: error: class, interface, or enum expected } ^ 71 errors