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

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

/root/JavaX-Caches/tmp_309687506/main.java:1: error: class, interface, or enum expected sclass PhilosophyBot1 { ^ /root/JavaX-Caches/tmp_309687506/main.java:23: error: class, interface, or enum expected bool valid = true; ^ /root/JavaX-Caches/tmp_309687506/main.java:25: error: class, interface, or enum expected toString { ret stdToString(this); } ^ /root/JavaX-Caches/tmp_309687506/main.java:25: error: class, interface, or enum expected toString { ret stdToString(this); } ^ /root/JavaX-Caches/tmp_309687506/main.java:28: error: class, interface, or enum expected abstract sclass Step { ^ /root/JavaX-Caches/tmp_309687506/main.java:29: error: class, interface, or enum expected abstract NPRet alternative(); // perform one backtracking step ^ /root/JavaX-Caches/tmp_309687506/main.java:31: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:34: error: class, interface, or enum expected ProcedureToRun(Proc proc) { this.proc = proc; path = new Path; } ^ /root/JavaX-Caches/tmp_309687506/main.java:34: error: class, interface, or enum expected ProcedureToRun(Proc proc) { this.proc = proc; path = new Path; } ^ /root/JavaX-Caches/tmp_309687506/main.java:38: error: class, interface, or enum expected transient int maxRounds = 1000; ^ /root/JavaX-Caches/tmp_309687506/main.java:39: error: class, interface, or enum expected transient Set<S> facts = linkedCISet(); ^ /root/JavaX-Caches/tmp_309687506/main.java:40: error: class, interface, or enum expected transient Set<S> originalFacts; ^ /root/JavaX-Caches/tmp_309687506/main.java:41: error: class, interface, or enum expected transient new LinkedHashSet<LogicRule> logicRules; ^ /root/JavaX-Caches/tmp_309687506/main.java:42: error: class, interface, or enum expected transient new AllOnAll<LogicRule, S> rulesOnFacts; ^ /root/JavaX-Caches/tmp_309687506/main.java:43: error: class, interface, or enum expected transient new L<ProcedureToRun> proceduresToRun; ^ /root/JavaX-Caches/tmp_309687506/main.java:45: error: class, interface, or enum expected transient long proceduresExecuted; ^ /root/JavaX-Caches/tmp_309687506/main.java:46: error: class, interface, or enum expected transient new L<NativePredicate> nativePredicates; ^ /root/JavaX-Caches/tmp_309687506/main.java:47: error: class, interface, or enum expected transient bool debugNativeCalls = true, debugAllCmds = true; ^ /root/JavaX-Caches/tmp_309687506/main.java:48: error: class, interface, or enum expected transient new L onProcedureEnded; ^ /root/JavaX-Caches/tmp_309687506/main.java:50: error: class, interface, or enum expected transient Set<S> vars = litciset("x", "y", "z"); ^ /root/JavaX-Caches/tmp_309687506/main.java:52: error: class, interface, or enum expected void addLogicRule(LogicRule rule) { ^ /root/JavaX-Caches/tmp_309687506/main.java:55: error: class, interface, or enum expected rulesOnFacts.newA(rule); // to combine it with the facts ^ /root/JavaX-Caches/tmp_309687506/main.java:56: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:61: error: class, interface, or enum expected if (empty(fact)) ret; ^ /root/JavaX-Caches/tmp_309687506/main.java:62: error: class, interface, or enum expected fact = tok_deRoundBracket(fact); ^ /root/JavaX-Caches/tmp_309687506/main.java:64: error: class, interface, or enum expected LS tok = javaTokWithBrackets(fact); ^ /root/JavaX-Caches/tmp_309687506/main.java:65: error: class, interface, or enum expected if (countCodeTokens(tok) == 2 && eqic(getCodeToken(tok, 0), "proc") ^ /root/JavaX-Caches/tmp_309687506/main.java:69: error: class, interface, or enum expected if (proceduresToRun.add(new ProcedureToRun(parseProcedure(proc)))) { ^ /root/JavaX-Caches/tmp_309687506/main.java:71: error: class, interface, or enum expected print(indentx("> ", proc)); ^ /root/JavaX-Caches/tmp_309687506/main.java:72: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:77: error: class, interface, or enum expected rulesOnFacts.newB(fact); // to combine it with the rules ^ /root/JavaX-Caches/tmp_309687506/main.java:78: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:83: error: class, interface, or enum expected runParsedProcedure(parseProcedure(proc), new Path); ^ /root/JavaX-Caches/tmp_309687506/main.java:84: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:89: error: class, interface, or enum expected L remainingCommands = cloneLinkedList(commands); ^ /root/JavaX-Caches/tmp_309687506/main.java:90: error: class, interface, or enum expected O cmd; ^ /root/JavaX-Caches/tmp_309687506/main.java:91: error: class, interface, or enum expected while not null (cmd = popFirst(remainingCommands)) { ^ /root/JavaX-Caches/tmp_309687506/main.java:93: error: class, interface, or enum expected if (debugAllCmds) ^ /root/JavaX-Caches/tmp_309687506/main.java:95: error: class, interface, or enum expected if cmd is If(O condition, O thenBlock, O elseBlock) { ^ /root/JavaX-Caches/tmp_309687506/main.java:97: error: class, interface, or enum expected runParsedProcedure(ll(blockToRun), path); ^ /root/JavaX-Caches/tmp_309687506/main.java:98: error: class, interface, or enum expected } else if cmd is For(O var, O condition, O body) { ^ /root/JavaX-Caches/tmp_309687506/main.java:103: error: class, interface, or enum expected } else if cmd is While(O condition, O body) { ^ /root/JavaX-Caches/tmp_309687506/main.java:105: error: class, interface, or enum expected if (!b) ret; ^ /root/JavaX-Caches/tmp_309687506/main.java:106: error: class, interface, or enum expected proceduresToRun.add(new ProcedureToRun(ll(body, cmd), path)); ^ /root/JavaX-Caches/tmp_309687506/main.java:107: error: class, interface, or enum expected } else if (cmd cast S) { ^ /root/JavaX-Caches/tmp_309687506/main.java:109: error: class, interface, or enum expected if (result != null) { ^ /root/JavaX-Caches/tmp_309687506/main.java:112: error: class, interface, or enum expected IF0<NPRet> f = ((WithAlternative) result).alternative; ^ /root/JavaX-Caches/tmp_309687506/main.java:113: error: class, interface, or enum expected S _cmd = cmd; ^ /root/JavaX-Caches/tmp_309687506/main.java:114: error: class, interface, or enum expected path.steps.add(new Step { ^ /root/JavaX-Caches/tmp_309687506/main.java:117: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:119: error: class, interface, or enum expected toString { ret _cmd; } ^ /root/JavaX-Caches/tmp_309687506/main.java:121: error: class, interface, or enum expected result = ((WithAlternative) result).result; ^ /root/JavaX-Caches/tmp_309687506/main.java:122: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:124: error: class, interface, or enum expected if (isTrueOpt(result)) continue; ^ /root/JavaX-Caches/tmp_309687506/main.java:125: error: class, interface, or enum expected SS mapping = cast result; // assume it's a variable mapping ^ /root/JavaX-Caches/tmp_309687506/main.java:127: error: class, interface, or enum expected L remainingCommands2 = mapToLinkedList(remainingCommands, ^ /root/JavaX-Caches/tmp_309687506/main.java:129: error: class, interface, or enum expected print("Applying var mapping " + mapping + " to " + remainingCommands ^ /root/JavaX-Caches/tmp_309687506/main.java:131: error: class, interface, or enum expected remainingCommands = remainingCommands2; ^ /root/JavaX-Caches/tmp_309687506/main.java:132: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_309687506/main.java:134: error: class, interface, or enum expected } else if (cmd != null) ^ /root/JavaX-Caches/tmp_309687506/main.java:136: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:138: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:144: error: class, interface, or enum expected if (map != null) { ^ /root/JavaX-Caches/tmp_309687506/main.java:146: error: class, interface, or enum expected if (debugNativeCalls) ^ /root/JavaX-Caches/tmp_309687506/main.java:148: error: class, interface, or enum expected if (result instanceof Map && nempty(map)) { ^ /root/JavaX-Caches/tmp_309687506/main.java:150: error: class, interface, or enum expected if (debugNativeCalls) ^ /root/JavaX-Caches/tmp_309687506/main.java:152: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:154: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:157: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:162: error: class, interface, or enum expected O result = runNativePredicate(o); ^ /root/JavaX-Caches/tmp_309687506/main.java:163: error: class, interface, or enum expected if (result cast Bool) ret result; ^ /root/JavaX-Caches/tmp_309687506/main.java:164: error: class, interface, or enum expected if (result instanceof Map) true; // TODO ^ /root/JavaX-Caches/tmp_309687506/main.java:165: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:167: error: class, interface, or enum expected false; ^ /root/JavaX-Caches/tmp_309687506/main.java:168: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_309687506/main.java:174: error: class, interface, or enum expected proc = autoUnindent(proc); ^ /root/JavaX-Caches/tmp_309687506/main.java:176: error: class, interface, or enum expected print(indentx("> ", proc)); ^ /root/JavaX-Caches/tmp_309687506/main.java:178: error: class, interface, or enum expected LS l = groupPythonStyleIndents_honoringBrackets(proc); ^ /root/JavaX-Caches/tmp_309687506/main.java:179: error: class, interface, or enum expected pnl("unpythonized ", l); ^ /root/JavaX-Caches/tmp_309687506/main.java:181: error: class, interface, or enum expected new L out; ^ /root/JavaX-Caches/tmp_309687506/main.java:182: error: class, interface, or enum expected for i over l: { ^ /root/JavaX-Caches/tmp_309687506/main.java:184: error: class, interface, or enum expected LS tok = javaTokWithBrackets(s); ^ /root/JavaX-Caches/tmp_309687506/main.java:185: error: class, interface, or enum expected if (eqic(firstCodeToken(tok), "if")) { ^ /root/JavaX-Caches/tmp_309687506/main.java:187: error: class, interface, or enum expected out.add(new If(deRoundBracket(getCodeToken(tok, 1)), ^ /root/JavaX-Caches/tmp_309687506/main.java:189: error: class, interface, or enum expected } else if (eqic(firstCodeToken(tok), "while")) { ^ /root/JavaX-Caches/tmp_309687506/main.java:191: error: class, interface, or enum expected out.add(new While(deRoundBracket(getCodeToken(tok, 1)), ^ /root/JavaX-Caches/tmp_309687506/main.java:193: error: class, interface, or enum expected } else if (eqic(firstCodeToken(tok), "else")) { ^ /root/JavaX-Caches/tmp_309687506/main.java:195: error: class, interface, or enum expected if (!last instanceof If) fail("Else without if"); ^ /root/JavaX-Caches/tmp_309687506/main.java:196: error: class, interface, or enum expected assertEquals(s, ":", getCodeToken(tok, 1)); ^ /root/JavaX-Caches/tmp_309687506/main.java:197: error: class, interface, or enum expected ((If) last).elseBlock = joinSubList(tok, 2*2); ^ /root/JavaX-Caches/tmp_309687506/main.java:198: error: class, interface, or enum expected } else if (eqic(firstCodeToken(tok), "for")) { ^ /root/JavaX-Caches/tmp_309687506/main.java:200: error: class, interface, or enum expected S cond = getCodeToken(tok, 1); ^ /root/JavaX-Caches/tmp_309687506/main.java:202: error: class, interface, or enum expected cond = deRoundBracket(cond); ^ /root/JavaX-Caches/tmp_309687506/main.java:203: error: class, interface, or enum expected LS tok2 = javaTok(cond); ^ /root/JavaX-Caches/tmp_309687506/main.java:204: error: class, interface, or enum expected assertEquals(cond, "|", getCodeToken(tok2, 1)); ^ /root/JavaX-Caches/tmp_309687506/main.java:205: error: class, interface, or enum expected S var = assertIdentifier(cond, getCodeToken(tok2, 0)); ^ /root/JavaX-Caches/tmp_309687506/main.java:206: error: class, interface, or enum expected S actualCondition = trimJoinSubList(tok2, 2*2+1); ^ /root/JavaX-Caches/tmp_309687506/main.java:207: error: class, interface, or enum expected out.add(new For(var, actualCondition, parseProcedure(joinSubList(tok, 3*2)))); ^ /root/JavaX-Caches/tmp_309687506/main.java:208: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_309687506/main.java:210: error: class, interface, or enum expected } ^ 100 errors only showing the first 100 errors, of 165 total; use -Xmaxerrs if you would like to see more