feat: initial microWacc definition #21

Merged
gk1623 merged 5 commits from microwacc into master 2025-02-18 17:27:13 +00:00
Showing only changes of commit 6a6aadbbeb - Show all commits

View File

@@ -14,6 +14,7 @@ object microWacc {
case class BoolLiter(v: Boolean) extends Expr(KnownType.Bool)
case class CharLiter(v: Char) extends Expr(KnownType.Char)
case class ArrayLiter(elems: List[Expr])(ty: SemType) extends Expr(ty)
case class NullLiter()(ty: SemType) extends Expr(ty)
case class Ident(name: String)(identTy: SemType)
extends Expr(identTy)
with CallTarget(identTy)