optimize some result register cases for peekw()

This commit is contained in:
Irmen de Jong
2026-02-22 22:52:38 +01:00
parent fe8d904792
commit f6b59c6832
7 changed files with 168 additions and 44 deletions
+7
View File
@@ -277,6 +277,13 @@ fun compileProgram(args: CompilerArguments): CompilationResult? {
args.errors.printSingleError("File not found: ${nsf.message}")
} catch (ax: AstException) {
args.errors.printSingleError(ax.toString())
} catch(fx: FileSystemException) {
if(fx.cause!=null) {
args.errors.printSingleError("\nfile I/O error: ${fx.file}: ${fx.cause}")
} else {
args.errors.printSingleError("\nfile I/O error")
throw fx
}
} catch (x: Exception) {
args.errors.printSingleError("\ninternal error")
throw x