on master help sign in
Merge pull request #3046 from xekoukou/master

Comments to Lang.hs to disambiguate the LIR.

commit16257654cdf5354aa12906d8fda7ad6512da83c8 authorJan de Muijnck-Hughes <jfdm@users.noreply.github.com> dateFri 18 Mar 2016, 14:43 (11 years ago) parent32fc703de35d66
1 file changed+2−1
src/IRTS/Lang.hs+2−1
src/IRTS/Lang.hs+2−1
@@ -17,10 +17,11 @@ data LVar = Loc Int | Glob Name
1717 deriving (Show, Eq)
1818
1919-- ASSUMPTION: All variable bindings have unique names here
20+-- Constructors commented as lifted are not present in the LIR provided to the different backends.
2021data LExp = LV LVar
2122 | LApp Bool LExp [LExp] -- True = tail call
2223 | LLazyApp Name [LExp] -- True = tail call
23− | LLazyExp LExp
24+ | LLazyExp LExp -- lifted out before compiling
2425 | LForce LExp -- make sure Exp is evaluted
2526 | LLet Name LExp LExp -- name just for pretty printing
2627 | LLam [Name] LExp -- lambda, lifted out before compiling