source-academy/java-slang

compiler/type checker: syntax error causes uncaught exception

Closed this issue · 0 comments

class Test { !!!???
    public static void main(String[] args) {
    }
}

gives
Screenshot 2024-04-16 at 1 39 43 PM
with uncaught exception:

main.ba2d93f0.js:2 Error: Sad sad panda, parsing errors detected in line: 1, column: 20!
Expecting --> '}' <-- but found --> '!' <--!
	->compilationUnit
	->ordinaryCompilationUnit
	->typeDeclaration