Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gilles Coremans
ASTTool
Commits
4a2c8802
Commit
4a2c8802
authored
Oct 08, 2019
by
marton bognar
Browse files
Fix free variables for string variable binders
parent
8d719154
Changes
1
Hide whitespace changes
Inline
Side-by-side
Tool/Variable/String.hs
View file @
4a2c8802
...
...
@@ -68,10 +68,12 @@ _substExpr sname consName =
(
VarExpr
"sub"
)
(
ConstrInst
consName
[
VarExpr
"var"
])
_oneDeeper
namespace
expr
=
FnCall
"concat"
[
ListExpr
(
ListExpr
[
VarExpr
"b"
]
:
expr
)]
ef
=
EF
{
paramForCtor
=
_getCtorParams
,
freeVarExprForVarCtor
=
_varCtorFreeVar
,
transformForAddAttr
=
(
\
n
e
->
head
e
)
,
transformForAddAttr
=
_oneDeeper
,
includeBinders
=
True
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment