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

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

/root/JavaX-Caches/tmp_594317713/main.java:2: error: class, interface, or enum expected sclass ShuntingYardCore<Op> { ^ /root/JavaX-Caches/tmp_594317713/main.java:5: error: class, interface, or enum expected void handleEOT() { ^ /root/JavaX-Caches/tmp_594317713/main.java:8: error: class, interface, or enum expected assertNequals(o, "("); ^ /root/JavaX-Caches/tmp_594317713/main.java:9: error: class, interface, or enum expected outputQueue.add(o); ^ /root/JavaX-Caches/tmp_594317713/main.java:10: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_594317713/main.java:16: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_594317713/main.java:19: error: class, interface, or enum expected bool op = isOperator(t), space = isSpacer(t); ^ /root/JavaX-Caches/tmp_594317713/main.java:20: error: class, interface, or enum expected if (op && space) warn("Operators should not be spacers"); ^ /root/JavaX-Caches/tmp_594317713/main.java:22: error: class, interface, or enum expected if (eq(t, "(")) { ^ /root/JavaX-Caches/tmp_594317713/main.java:24: error: class, interface, or enum expected operatorStack.add(t); ^ /root/JavaX-Caches/tmp_594317713/main.java:25: error: class, interface, or enum expected } else if (eq(t, ")")) { ^ /root/JavaX-Caches/tmp_594317713/main.java:27: error: class, interface, or enum expected while (!eq(last(operatorStack), "(")) { ^ /root/JavaX-Caches/tmp_594317713/main.java:29: error: class, interface, or enum expected outputQueue.add(popLast(operatorStack)); ^ /root/JavaX-Caches/tmp_594317713/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_594317713/main.java:32: error: class, interface, or enum expected } else if (op) { ^ /root/JavaX-Caches/tmp_594317713/main.java:34: error: class, interface, or enum expected S o1 = t, o2; ^ /root/JavaX-Caches/tmp_594317713/main.java:35: error: class, interface, or enum expected while (!eqOneOf(o2 = last(operatorStack), "(", null) ^ /root/JavaX-Caches/tmp_594317713/main.java:40: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_594317713/main.java:42: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_594317713/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_594317713/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_594317713/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_594317713/main.java:55: error: class, interface, or enum expected swappable bool isLeftAssociative(Op op) { true; } ^ 23 errors