forked from GitHub/gf-core
unlexer concat
This commit is contained in:
@@ -18,6 +18,7 @@ import Grammar
|
||||
import Ident
|
||||
import Modules
|
||||
import Macros
|
||||
import Lockfield
|
||||
import PrGrammar
|
||||
|
||||
import Operations
|
||||
@@ -118,19 +119,6 @@ mkResDefs hasT isC gr r a mext maext abs cnc = mapMTree (mkOne a maext) abs wher
|
||||
Q n c | n == a || [n] == mae -> return $ Q r c ---- FIX for non-singleton exts
|
||||
_ -> composOp (redirTyp always a mae) ty
|
||||
|
||||
lockRecType :: Ident -> Type -> Err Type
|
||||
lockRecType c t = plusRecType t $ RecType [(lockLabel c, RecType [])]
|
||||
|
||||
unlockRecord :: Ident -> Term -> Err Term
|
||||
unlockRecord c ft = do
|
||||
let (xs,t) = termFormCnc ft
|
||||
t' <- plusRecord t $ R [(lockLabel c, (Just (RecType []),R []))]
|
||||
return $ mkAbs xs t'
|
||||
|
||||
lockLabel :: Ident -> Label
|
||||
lockLabel c = LIdent $ "lock_" ++ prt c ----
|
||||
|
||||
|
||||
-- no reuse for functions of HO/dep types
|
||||
|
||||
isHardType t = case t of
|
||||
|
||||
Reference in New Issue
Block a user