fix: variable-sized values, heap-allocated arrays (and printCharArray)

This commit is contained in:
2025-02-27 14:48:24 +00:00
parent 58df1d7bb9
commit 887b982331
8 changed files with 185 additions and 238 deletions

View File

@@ -1,6 +1,7 @@
package wacc
import scala.collection.mutable
import cats.data.Chain
import parsley.{Failure, Success}
import scopt.OParser
import java.io.File
@@ -63,7 +64,7 @@ def frontend(
}
val s = "enter an integer to echo"
def backend(typedProg: microWacc.Program): List[asm.AsmLine] =
def backend(typedProg: microWacc.Program): Chain[asm.AsmLine] =
asmGenerator.generateAsm(typedProg)
def compile(filename: String, outFile: Option[File] = None)(using