record labels in compiler experiment

This commit is contained in:
aarne
2007-04-20 15:36:33 +00:00
parent 8150faa640
commit 56c4e750a0
3 changed files with 23 additions and 20 deletions

View File

@@ -52,8 +52,6 @@ eval e = case e of
---- pattern match first
return $ compVal [] $ VPro t' v' ---- []
EPro t v -> do
EPro t v@(Lab _ i) -> do
t' <- eval t
---- project first
return $ VPro t' (VPar 666) ---- lookup label
return $ compVal [] $ VPro t' (VPar i)