feat: merge master #25

Merged
al4423 merged 8 commits from master into asm-gen 2025-02-21 23:09:14 +00:00
6 changed files with 280 additions and 87 deletions
Showing only changes of commit 0391b9deba - Show all commits

View File

@@ -222,7 +222,6 @@ def compile(filename: String, outFile: Option[File] = None)(using
frontend(os.read(os.Path(filename))) match {
case Left(typedProg) =>
val asmFile = outFile.getOrElse(File(filename.stripSuffix(".wacc") + ".s"))
println("OUTPUT TO" + asmFile.getAbsolutePath())
backend(typedProg) match {
case s: String =>
os.write.over(os.Path(asmFile.getAbsolutePath), s)