source-academy/frontend

Java CSEC supports Inheritance but not Compiler

Closed this issue · 0 comments

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