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
46917235
Commit
46917235
authored
Aug 14, 2001
by
Vincent Zweije
Browse files
Change local match function to case expression
parent
331a9155
Changes
1
Hide whitespace changes
Inline
Side-by-side
sucl/newfold.icl
View file @
46917235
...
...
@@ -204,25 +204,25 @@ foldtips ::
foldtips
foldarea
foldcont
=
ft
where
ft
hist
trace
=
ft`
transf
=
case
transf
of
Stop
->
foldoptional
exres
(
pair
True
o
addstrict
stricts
)
(
actualfold
deltanodes
rnfnodes
foldarea
(==)
foldcont
(
snd
hist
)
rule
)
where
deltanodes
=
foldoptional
[]
getdeltanodes
answer
rnfnodes
=
foldoptional
[
ruleroot
rule
]
(
const
[])
answer
Instantiate
yestrace
notrace
->
ft``
(
ft
hist
yestrace
)
(
ft
hist
notrace
)
where
ft``
(
False
,
yessra
)
(
False
,
nosra
)
=
exres
ft``
(
yesfound
,(
yesstricts
,
yesrules
,
yesareas
))
(
nofound
,(
nostricts
,
norules
,
noareas
))
=
(
True
,(
stricts
,
yesrules
++
norules
,
yesareas
++
noareas
))
Reduce
reductroot
trace
->
ft``
(
ft
(
fst
hist
,
fst
hist
)
trace
)
where
ft``
(
False
,
sra
)
=
exres
ft``
(
found
,
sra
)
=
(
True
,
sra
)
Annotate
trace
->
ft``
(
ft
hist
trace
)
where
ft``
(
False
,
sra
)
=
exres
ft``
(
found
,
sra
)
=
(
True
,
sra
)
where
(
Trace
stricts
rule
answer
history
transf
)
=
trace
ft`
Stop
=
foldoptional
exres
(
pair
True
o
addstrict
stricts
)
(
actualfold
deltanodes
rnfnodes
foldarea
(==)
foldcont
(
snd
hist
)
rule
)
where
deltanodes
=
foldoptional
[]
getdeltanodes
answer
rnfnodes
=
foldoptional
[
ruleroot
rule
]
(
const
[])
answer
ft`
(
Instantiate
yestrace
notrace
)
=
ft``
(
ft
hist
yestrace
)
(
ft
hist
notrace
)
where
ft``
(
False
,
yessra
)
(
False
,
nosra
)
=
exres
ft``
(
yesfound
,(
yesstricts
,
yesrules
,
yesareas
))
(
nofound
,(
nostricts
,
norules
,
noareas
))
=
(
True
,(
stricts
,
yesrules
++
norules
,
yesareas
++
noareas
))
ft`
(
Reduce
reductroot
trace
)
=
ft``
(
ft
(
fst
hist
,
fst
hist
)
trace
)
where
ft``
(
False
,
sra
)
=
exres
ft``
(
found
,
sra
)
=
(
True
,
sra
)
ft`
(
Annotate
trace
)
=
ft``
(
ft
hist
trace
)
where
ft``
(
False
,
sra
)
=
exres
ft``
(
found
,
sra
)
=
(
True
,
sra
)
exres
=
(
False
,
newextract
noetrc
foldarea
trace
)
addstrict
stricts
(
rule
,
areas
)
=
(
stricts
,[
rule
],
areas
)
...
...
Write
Preview
Markdown
is supported
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