Prep to switch from Def to CExp for backend passes.

This commit is contained in:
2025-03-15 15:46:56 -07:00
parent 5c7d065a88
commit 5ab2a28bcf
13 changed files with 650 additions and 338 deletions

View File

@@ -7,6 +7,9 @@ import Data.SortedMap
-- l is environment size, this works for both lvl2ix and ix2lvl
range : Int Int List Int
range n m = if n < m then n :: range (n + 1) m else Nil
lvl2ix : Int -> Int -> Int
lvl2ix l k = l - k - 1