feat: user functions and calls

This commit is contained in:
2025-02-26 18:31:15 +00:00
parent 85190ce174
commit c748a34e4c
2 changed files with 23 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ object typeChecker {
microWacc.FuncDecl(
microWacc.Ident(name.v, name.uid)(retType),
params.zip(paramTypes).map { case (ast.Param(_, ident), ty) =>
microWacc.Ident(ident.v, name.uid)(ty)
microWacc.Ident(ident.v, ident.uid)(ty)
},
stmts.toList
.flatMap(