mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-05 09:12:51 -06:00
added a note on refreshing variables in AbsCompute
This commit is contained in:
@@ -56,7 +56,7 @@ beta vv c = case c of
|
|||||||
|
|
||||||
subst :: [CId] -> Subst -> Expr -> Expr
|
subst :: [CId] -> Subst -> Expr -> Expr
|
||||||
subst xs g e = case e of
|
subst xs g e = case e of
|
||||||
EAbs x b -> EAbs x (subst (x:xs) g e)
|
EAbs x b -> EAbs x (subst (x:xs) g e) ---- TODO: refresh variables
|
||||||
EApp f a -> EApp (substg f) (substg a)
|
EApp f a -> EApp (substg f) (substg a)
|
||||||
EVar x -> maybe e id $ lookup x g
|
EVar x -> maybe e id $ lookup x g
|
||||||
_ -> e
|
_ -> e
|
||||||
|
|||||||
Reference in New Issue
Block a user