feat: implement all runtime errors #32

Merged
jt2622 merged 16 commits from runtime-errors into master 2025-02-28 00:23:13 +00:00
3 changed files with 12 additions and 22 deletions
Showing only changes of commit edce236158 - Show all commits

View File

@@ -180,8 +180,8 @@ object typeChecker {
microWacc.Builtin.Read, microWacc.Builtin.Read,
List( List(
destTy match { destTy match {
case KnownType.Int => "%d".toMicroWaccCharArray case KnownType.Int => " %d".toMicroWaccCharArray
case KnownType.Char | _ => "%c".toMicroWaccCharArray case KnownType.Char | _ => " %c".toMicroWaccCharArray
}, },
destTyped destTyped
) )