fix: read space-delimited tokens (as per spec)

This commit is contained in:
2025-02-27 19:58:57 +00:00
parent cb4f899b8c
commit edce236158

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
) )