Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
a0e30ac2
Commit
a0e30ac2
authored
Aug 14, 2001
by
Vincent Zweije
Browse files
Change local matcher to case expression
parent
e50b713b
Changes
1
Hide whitespace changes
Inline
Side-by-side
sucl/newfold.icl
View file @
a0e30ac2
...
@@ -345,16 +345,19 @@ newextract ::
...
@@ -345,16 +345,19 @@ newextract ::
newextract
trc
newname
(
Trace
stricts
rule
answer
history
transf
)
newextract
trc
newname
(
Trace
stricts
rule
answer
history
transf
)
|
recursive
|
recursive
=
(
stricts
,[
recrule
],
recareas
)
=
(
stricts
,[
recrule
],
recareas
)
=
subex
transf
=
case
transf
where
subex
(
Reduce
reductroot
trace
)
=
newextract
trc
newname
trace
of
Reduce
reductroot
trace
subex
(
Annotate
trace
)
=
newextract
trc
newname
trace
->
newextract
trc
newname
trace
subex
(
Instantiate
yestrace
notrace
)
Annotate
trace
=
(
stricts
,
yesrules
++
norules
,
yesareas
++
noareas
)
->
newextract
trc
newname
trace
where
(
yesstricts
,
yesrules
,
yesareas
)
=
newextract
trc
newname
yestrace
Instantiate
yestrace
notrace
(
nostricts
,
norules
,
noareas
)
=
newextract
trc
newname
notrace
->
(
stricts
,
yesrules
++
norules
,
yesareas
++
noareas
)
subex
Stop
=
(
stricts
,[
mkrule
rargs
rroot
stoprgraph
],
stopareas
)
where
(
yesstricts
,
yesrules
,
yesareas
)
=
newextract
trc
newname
yestrace
(
nostricts
,
norules
,
noareas
)
=
newextract
trc
newname
notrace
(
recursive
,
unsafearea
)
Stop
->
(
stricts
,[
mkrule
rargs
rroot
stoprgraph
],
stopareas
)
where
(
recursive
,
unsafearea
)
=
if
(
isreduce
transf
)
=
if
(
isreduce
transf
)
(
foldoptional
(
False
,
undef
)
(
findspinepart
rule
transf
)
answer
)
(
foldoptional
(
False
,
undef
)
(
findspinepart
rule
transf
)
answer
)
(
False
,
abort
"newextract: not a Reduce transformation"
)
(
False
,
abort
"newextract: not a Reduce transformation"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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