Wrote /root/JavaX-Caches/tmp_1503343235/main.java - 1321 bytes (written=1321, should be 1321) 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:/root/.tinybrain/snippet-cache/1019849.jar -d /root/JavaX-Caches/tmp_174808260 /root/JavaX-Caches/tmp_1503343235/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1503343235/main.java:1: error: class, interface, or enum expected !7 ^ /root/JavaX-Caches/tmp_1503343235/main.java:8: error: '(' or '[' expected new State s; ^ /root/JavaX-Caches/tmp_1503343235/main.java:14: error: '(' expected void doneWithSubroutine { ^ /root/JavaX-Caches/tmp_1503343235/main.java:15: error: not a statement if (continuation == null) ret; ^ /root/JavaX-Caches/tmp_1503343235/main.java:17: error: '(' or '[' expected addState(prepareDescendant(new State { ^ /root/JavaX-Caches/tmp_1503343235/main.java:18: error: not a statement run { ^ /root/JavaX-Caches/tmp_1503343235/main.java:18: error: ';' expected run { ^ /root/JavaX-Caches/tmp_1503343235/main.java:21: error: illegal start of expression })); ^ /root/JavaX-Caches/tmp_1503343235/main.java:24: error: '(' expected void step { ^ /root/JavaX-Caches/tmp_1503343235/main.java:29: error: class, interface, or enum expected start-thread { ^ /root/JavaX-Caches/tmp_1503343235/main.java:31: error: class, interface, or enum expected Chain<S> words = litchain("Hello", "World", "."); ^ /root/JavaX-Caches/tmp_1503343235/main.java:32: error: class, interface, or enum expected pm.addState(new State { ^ /root/JavaX-Caches/tmp_1503343235/main.java:34: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1503343235/main.java:36: error: class, interface, or enum expected pm.onRunningState = st -> { ^ /root/JavaX-Caches/tmp_1503343235/main.java:38: error: class, interface, or enum expected }; ^ /root/JavaX-Caches/tmp_1503343235/main.java:39: error: class, interface, or enum expected pm.onRanState = st -> { ^ /root/JavaX-Caches/tmp_1503343235/main.java:41: error: class, interface, or enum expected }; ^ /root/JavaX-Caches/tmp_1503343235/main.java:42: error: class, interface, or enum expected stepAllWithStats(pm); ^ /root/JavaX-Caches/tmp_1503343235/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1503343235/main.java:47: error: class, interface, or enum expected State s = prepareDescendant(new { ^ /root/JavaX-Caches/tmp_1503343235/main.java:50: error: class, interface, or enum expected addState(prepareDescendant(new State { ^ /root/JavaX-Caches/tmp_1503343235/main.java:54: error: class, interface, or enum expected doneWithSubroutine(); ^ /root/JavaX-Caches/tmp_1503343235/main.java:55: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1503343235/main.java:57: error: class, interface, or enum expected s.continuation = state -> { ^ /root/JavaX-Caches/tmp_1503343235/main.java:59: error: class, interface, or enum expected }; ^ /root/JavaX-Caches/tmp_1503343235/main.java:60: error: class, interface, or enum expected pm.addState(s); ^ /root/JavaX-Caches/tmp_1503343235/main.java:61: error: class, interface, or enum expected } ^ 27 errors