feat: implement all runtime errors #32

Merged
jt2622 merged 16 commits from runtime-errors into master 2025-02-28 00:23:13 +00:00
Showing only changes of commit 9a1728fb3f - Show all commits

View File

@@ -82,9 +82,9 @@ def compile(filename: String, outFile: Option[File] = None)(using
def main(args: Array[String]): Unit = def main(args: Array[String]): Unit =
OParser.parse(cliParser, args, CliConfig()) match { OParser.parse(cliParser, args, CliConfig()) match {
case Some(config) => case Some(config) =>
compile( System.exit(compile(
config.file.getAbsolutePath, config.file.getAbsolutePath,
outFile = Some(File(".", config.file.getName.stripSuffix(".wacc") + ".s")) outFile = Some(File(".", config.file.getName.stripSuffix(".wacc") + ".s"))
) ))
case None => case None =>
} }