File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
grin/src/Transformations/ExtendedSyntax Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,19 +107,19 @@ mapNameUseExp f = \case
107107subst :: Ord a => Map a a -> a -> a
108108subst env x = Map. findWithDefault x x env
109109
110- -- substitute all @Names@s in an @Exp@
110+ -- substitute all @Names@s in an @Exp@ (non-recursive)
111111substVarRefExp :: Map Name Name -> Exp -> Exp
112112substVarRefExp env = mapNameUseExp (subst env)
113113
114- -- substitute all @Names@s in a @Val@
114+ -- substitute all @Names@s in a @Val@ (non-recursive)
115115substNamesVal :: Map Name Name -> Val -> Val
116116substNamesVal env = mapNamesVal (subst env)
117117
118- -- specialized version of @subst@ to @Val@s
118+ -- specialized version of @subst@ to @Val@s (non-recursive)
119119substValsVal :: Map Val Val -> Val -> Val
120120substValsVal env = subst env
121121
122- -- substitute all @Val@s in an @Exp@
122+ -- substitute all @Val@s in an @Exp@ (non-recursive)
123123substVals :: Map Val Val -> Exp -> Exp
124124substVals env = mapValsExp (subst env)
125125
You can’t perform that action at this time.
0 commit comments