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
5e9eb699
Commit
5e9eb699
authored
Aug 14, 2001
by
Vincent Zweije
Browse files
Remove translated Miranda code
parent
6cf7690f
Changes
1
Hide whitespace changes
Inline
Side-by-side
sucl/extract.icl
View file @
5e9eb699
...
...
@@ -95,32 +95,6 @@ actualfold deltanodes rnfnodes foldarea self foldcont hist rule
argnodes
=
varlist
rgraph`
rargs
foldednodes
=
map
fst
list3
/*
> findoccs
> :: [(***,graph * ***)] ->
> rule * ** ->
> ** ->
> [((***,graph * ***),[(***,**)])]
> findoccs hist rule rnode
> = [ ((hroot,hgraph),mapping)
> | ((hroot,hgraph),(seen,mapping,[]))<-list1 || Find instantiable history rgraphs...
> ; unshared rnode (hroot,hgraph) mapping || ...which don't have shared contents...
>|| ; ~self hroot rnode || ...and aren't the history graph itself
> ]
> where rargs = lhs rule; rroot = rhs rule; rgraph = rulegraph rule
> list1
> = [((hroot,hgraph),inst (hroot,hgraph))|(hroot,hgraph)<-hist]
> where inst (hroot,hgraph)
> = instantiate (hgraph,rgraph) (hroot,rnode) ([],[],[])
> || list1: all instantiation attempts at rnode with the history rgraphs
> unshared rnode (hroot,hgraph) mapping
> = disjoint inner outer
> where inner = map (lookup mapping) (fst (nodeset hgraph [hroot]))
> outer = nodelist (prunegraph rnode rgraph) (rroot:rargs)--[rnode]
*/
findoccs
::
[(
pvar
,
Graph
sym
pvar
)]
(
Rule
sym
var
)
...
...
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