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

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

/root/JavaX-Caches/tmp_991331738/main.java:15: error: class, interface, or enum expected sclass GazelleV_LeftArrowScriptParser > SimpleLeftToRightParser { ^ /root/JavaX-Caches/tmp_991331738/main.java:22: error: class, interface, or enum expected L functionContainers; ^ /root/JavaX-Caches/tmp_991331738/main.java:24: error: class, interface, or enum expected new LinkedHashSet<S> knownVars; ^ /root/JavaX-Caches/tmp_991331738/main.java:25: error: class, interface, or enum expected BuildingScript currentReturnableScript; ^ /root/JavaX-Caches/tmp_991331738/main.java:26: error: class, interface, or enum expected int parenLevels; ^ /root/JavaX-Caches/tmp_991331738/main.java:29: error: class, interface, or enum expected srecord MethodOnObject(O object, S method) {} ^ /root/JavaX-Caches/tmp_991331738/main.java:33: error: illegal start of type new Script script; ^ /root/JavaX-Caches/tmp_991331738/main.java:34: error: illegal start of type new L<Evaluable> steps; ^ /root/JavaX-Caches/tmp_991331738/main.java:35: error: '(' or '[' expected Map<S, Toolbox.FunctionDef> functionDefs = new Map; ^ /root/JavaX-Caches/tmp_991331738/main.java:37: error: illegal start of type *(bool *returnable) {} ^ /root/JavaX-Caches/tmp_991331738/main.java:37: error: <identifier> expected *(bool *returnable) {} ^ /root/JavaX-Caches/tmp_991331738/main.java:37: error: <identifier> expected *(bool *returnable) {} ^ /root/JavaX-Caches/tmp_991331738/main.java:46: error: ')' expected if (lastStep cast Toolbox.ReturnFromScript) ^ /root/JavaX-Caches/tmp_991331738/main.java:46: error: ';' expected if (lastStep cast Toolbox.ReturnFromScript) ^ /root/JavaX-Caches/tmp_991331738/main.java:46: error: variable declaration not allowed here if (lastStep cast Toolbox.ReturnFromScript) ^ /root/JavaX-Caches/tmp_991331738/main.java:46: error: not a statement if (lastStep cast Toolbox.ReturnFromScript) ^ /root/JavaX-Caches/tmp_991331738/main.java:46: error: ';' expected if (lastStep cast Toolbox.ReturnFromScript) ^ /root/JavaX-Caches/tmp_991331738/main.java:54: error: ';' expected ret first(steps); ^ /root/JavaX-Caches/tmp_991331738/main.java:54: error: variable declaration not allowed here ret first(steps); ^ /root/JavaX-Caches/tmp_991331738/main.java:54: error: not a statement ret first(steps); ^ /root/JavaX-Caches/tmp_991331738/main.java:54: error: ';' expected ret first(steps); ^ /root/JavaX-Caches/tmp_991331738/main.java:63: error: ';' expected S toStringLong() { ret pnlToLines(steps); } ^ /root/JavaX-Caches/tmp_991331738/main.java:63: error: not a statement S toStringLong() { ret pnlToLines(steps); } ^ /root/JavaX-Caches/tmp_991331738/main.java:63: error: ';' expected S toStringLong() { ret pnlToLines(steps); } ^ /root/JavaX-Caches/tmp_991331738/main.java:64: error: <identifier> expected toString { ret formatRecordVars BuildingScript(+script, +returnable); } ^ /root/JavaX-Caches/tmp_991331738/main.java:64: error: ';' expected toString { ret formatRecordVars BuildingScript(+script, +returnable); } ^ /root/JavaX-Caches/tmp_991331738/main.java:67: error: class, interface, or enum expected Script parse(S text) { ^ /root/JavaX-Caches/tmp_991331738/main.java:69: error: class, interface, or enum expected ret (Script) parseScript(true); ^ /root/JavaX-Caches/tmp_991331738/main.java:70: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:75: error: class, interface, or enum expected var lastReturnableScript = currentReturnableScript; ^ /root/JavaX-Caches/tmp_991331738/main.java:76: error: class, interface, or enum expected if (returnable) currentReturnableScript = script; ^ /root/JavaX-Caches/tmp_991331738/main.java:77: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_991331738/main.java:79: error: class, interface, or enum expected var builtScript = script!; ^ /root/JavaX-Caches/tmp_991331738/main.java:80: error: class, interface, or enum expected currentReturnableScript = lastReturnableScript; ^ /root/JavaX-Caches/tmp_991331738/main.java:81: error: class, interface, or enum expected ret builtScript; ^ /root/JavaX-Caches/tmp_991331738/main.java:82: error: class, interface, or enum expected } catch e { ^ /root/JavaX-Caches/tmp_991331738/main.java:85: error: class, interface, or enum expected throw rethrowAndAppendToMessage(e, squareBracketed(str(lineAndColumn()))); ^ /root/JavaX-Caches/tmp_991331738/main.java:86: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:92: error: class, interface, or enum expected if (is("}")) break; ^ /root/JavaX-Caches/tmp_991331738/main.java:94: error: class, interface, or enum expected S t = token(); ^ /root/JavaX-Caches/tmp_991331738/main.java:95: error: class, interface, or enum expected print("First token of command: " + t); ^ /root/JavaX-Caches/tmp_991331738/main.java:97: error: class, interface, or enum expected if (is("def")) ^ /root/JavaX-Caches/tmp_991331738/main.java:100: error: class, interface, or enum expected if (is("while")) ^ /root/JavaX-Caches/tmp_991331738/main.java:103: error: class, interface, or enum expected if (is("for")) ^ /root/JavaX-Caches/tmp_991331738/main.java:106: error: class, interface, or enum expected if (is("if")) ^ /root/JavaX-Caches/tmp_991331738/main.java:110: error: class, interface, or enum expected if (is("return")) { ^ /root/JavaX-Caches/tmp_991331738/main.java:112: error: class, interface, or enum expected var expr = parseExpr(); ^ /root/JavaX-Caches/tmp_991331738/main.java:113: error: class, interface, or enum expected continue with script.add(new Toolbox.ReturnFromScript(currentReturnableScript.script, expr)); ^ /root/JavaX-Caches/tmp_991331738/main.java:114: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:117: error: class, interface, or enum expected if (isIdentifier(t) && eq(token(1), "<") && eq(token(2), "-")) { ^ /root/JavaX-Caches/tmp_991331738/main.java:119: error: class, interface, or enum expected next(3); ^ /root/JavaX-Caches/tmp_991331738/main.java:120: error: class, interface, or enum expected knownVars.add(t); ^ /root/JavaX-Caches/tmp_991331738/main.java:121: error: class, interface, or enum expected script.add(new Toolbox.Assignment(t, parseExpr())); ^ /root/JavaX-Caches/tmp_991331738/main.java:122: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_991331738/main.java:124: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:129: error: class, interface, or enum expected if (atCmdEnd() || is("{")) null; ^ /root/JavaX-Caches/tmp_991331738/main.java:130: error: class, interface, or enum expected ret parseInnerExpr(); ^ /root/JavaX-Caches/tmp_991331738/main.java:131: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:133: error: class, interface, or enum expected Evaluable const(O o) { ret new Toolbox.Const(o); } ^ /root/JavaX-Caches/tmp_991331738/main.java:135: error: class, interface, or enum expected Evaluable parseInnerExpr() { ret parseExpr(true); } ^ /root/JavaX-Caches/tmp_991331738/main.java:140: error: class, interface, or enum expected S t = token(); ^ /root/JavaX-Caches/tmp_991331738/main.java:141: error: class, interface, or enum expected printVars parseExpr(token := t); ^ /root/JavaX-Caches/tmp_991331738/main.java:142: error: class, interface, or enum expected if (is(";")) null; // empty command ^ /root/JavaX-Caches/tmp_991331738/main.java:145: error: class, interface, or enum expected if (is("-") && empty(nextSpace()) && startsWithDigit(token(1)) ^ /root/JavaX-Caches/tmp_991331738/main.java:148: error: class, interface, or enum expected ret isInteger(t) ? const(parseInt(t)) : const(parseDouble(t)); ^ /root/JavaX-Caches/tmp_991331738/main.java:149: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:153: error: class, interface, or enum expected ret const(unquote(t)); ^ /root/JavaX-Caches/tmp_991331738/main.java:154: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:158: error: class, interface, or enum expected print("Consumed identifier " + t + ", next token: " + token() + ", inner: " + inner); ^ /root/JavaX-Caches/tmp_991331738/main.java:159: error: class, interface, or enum expected ret parseExprStartingWithIdentifier(t, inner); ^ /root/JavaX-Caches/tmp_991331738/main.java:160: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:166: error: class, interface, or enum expected consume(); ^ /root/JavaX-Caches/tmp_991331738/main.java:167: error: class, interface, or enum expected print("Consumed opening parens (level " + parenLevels + ")"); ^ /root/JavaX-Caches/tmp_991331738/main.java:168: error: class, interface, or enum expected var e = parseExpr(); ^ /root/JavaX-Caches/tmp_991331738/main.java:169: error: class, interface, or enum expected print("Consuming closing parens for expr: " + e + " (closing paren level " + parenLevels + ")"); ^ /root/JavaX-Caches/tmp_991331738/main.java:170: error: class, interface, or enum expected consume(")"); ^ /root/JavaX-Caches/tmp_991331738/main.java:171: error: class, interface, or enum expected parenLevels--; ^ /root/JavaX-Caches/tmp_991331738/main.java:173: error: class, interface, or enum expected ret inner ? e : parseCall(e); ^ /root/JavaX-Caches/tmp_991331738/main.java:174: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:177: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:182: error: class, interface, or enum expected if (eq(t, "false")) ret const(false); ^ /root/JavaX-Caches/tmp_991331738/main.java:183: error: class, interface, or enum expected if (eq(t, "null")) ret const(null); ^ /root/JavaX-Caches/tmp_991331738/main.java:185: error: class, interface, or enum expected if (eq(t, "new")) { ^ /root/JavaX-Caches/tmp_991331738/main.java:187: error: class, interface, or enum expected O o = findExternalObject(className); ^ /root/JavaX-Caches/tmp_991331738/main.java:188: error: class, interface, or enum expected if (o cast Class) ^ /root/JavaX-Caches/tmp_991331738/main.java:190: error: class, interface, or enum expected fail("Class not found: " + className); ^ /root/JavaX-Caches/tmp_991331738/main.java:191: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:195: error: class, interface, or enum expected print("Found var acccess: " + e + ", " + (!inner ? "Checking for call" : "Returning expression")); ^ /root/JavaX-Caches/tmp_991331738/main.java:196: error: class, interface, or enum expected ret inner ? e : parseCall(e); ^ /root/JavaX-Caches/tmp_991331738/main.java:197: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:201: error: class, interface, or enum expected if (fdef != null) ^ /root/JavaX-Caches/tmp_991331738/main.java:203: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_991331738/main.java:206: error: class, interface, or enum expected if (o == null) ^ /root/JavaX-Caches/tmp_991331738/main.java:208: error: class, interface, or enum expected else if (inner) ^ /root/JavaX-Caches/tmp_991331738/main.java:210: error: class, interface, or enum expected else if (o cast Class) { ^ /root/JavaX-Caches/tmp_991331738/main.java:223: error: class, interface, or enum expected if (hasMethodNamed(o, name)) ^ /root/JavaX-Caches/tmp_991331738/main.java:228: error: class, interface, or enum expected var field = getField(o, name); ^ /root/JavaX-Caches/tmp_991331738/main.java:229: error: class, interface, or enum expected if (field != null) { ^ /root/JavaX-Caches/tmp_991331738/main.java:231: error: class, interface, or enum expected ret new Toolbox.GetStaticField(field); ^ /root/JavaX-Caches/tmp_991331738/main.java:232: error: class, interface, or enum expected } ^ 100 errors only showing the first 100 errors, of 171 total; use -Xmaxerrs if you would like to see more