source-academy / frontend

Frontend of Source Academy, an online experiential environment for computational thinking (React, Redux, Saga, Blueprint)
https://sourceacademy.org
Apache License 2.0
101 stars 164 forks source link

Java CSEC supports Inheritance but not Compiler #2949

Closed xyliew25 closed 2 months ago

xyliew25 commented 2 months ago

Inheritance is supported in the Java CSEC machine so the code below is valid syntax. However, nothing happens when the run button is clicked. This is because the call to the CSEC machine, i.e., runJavaCseMachine() happens after the call to the compiler, i.e., compileFromSource(), but the compiler currently does not support inheritance. Note that the CSEC machine and compiler are using different parsers.

image