Skip to content

Commit

Permalink
wip flattening
Browse files Browse the repository at this point in the history
  • Loading branch information
ollef committed Jun 27, 2024
1 parent ef09465 commit 55982fc
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 178 deletions.
4 changes: 2 additions & 2 deletions src/Low/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ data Term v
= Operand !(Operand v)
| Let !PassBy !Name !(LetOperation v) !(Scope Term v)
| Seq !(SeqOperation v) !(Term v)
| Case !(Operand v) [Branch v] (Maybe (Term v))
deriving (Eq, Show, Generic, Hashable)

data LetOperation v
= Call !Name.Lowered [Operand v]
= Case !(Operand v) [Branch v] (Maybe (Term v))
| Call !Name.Lowered [Operand v]
| StackAllocate !(Operand v)
| HeapAllocate !Name.QualifiedConstructor !(Operand v)
| HeapPayload !(Operand v)
Expand Down
Loading

0 comments on commit 55982fc

Please sign in to comment.