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
e1479b2e
Commit
e1479b2e
authored
Aug 14, 2001
by
Vincent Zweije
Browse files
Rename FunBody to FuncDef
parent
caec3b25
Changes
4
Hide whitespace changes
Inline
Side-by-side
sucl/newfold.dcl
View file @
e1479b2e
...
...
@@ -9,7 +9,7 @@ from rule import Rgraph,Rule
from
general
import
Optional
from
StdOverloaded
import
==
::
Fun
Body
sym
var
::
Fun
cDef
sym
var
:==
[
Rule
sym
var
]
::
Etracer
sym
var
pvar
:==
...
...
@@ -23,7 +23,7 @@ fullfold ::
((
Rgraph
sym
var
)->(
sym
,[
var
]))
sym
(
Trace
sym
var
pvar
)
->
([
Bool
],
Fun
Body
sym
var
,[
Rgraph
sym
var
])
->
([
Bool
],
Fun
cDef
sym
var
,[
Rgraph
sym
var
])
|
==
sym
&
==
var
&
==
pvar
sucl/newfold.icl
View file @
e1479b2e
...
...
@@ -68,7 +68,7 @@ Deprecated type
> (bool,([bool],[rule * **],[rgraph * **]))
*/
::
Fun
Body
sym
var
::
Fun
cDef
sym
var
:==
[
Rule
sym
var
]
/*
...
...
@@ -94,7 +94,7 @@ fullfold ::
((
Rgraph
sym
var
)->(
sym
,[
var
]))
sym
(
Trace
sym
var
pvar
)
->
([
Bool
],
Fun
Body
sym
var
,[
Rgraph
sym
var
])
->
([
Bool
],
Fun
cDef
sym
var
,[
Rgraph
sym
var
])
|
==
sym
&
==
var
&
==
pvar
...
...
@@ -119,7 +119,7 @@ recurse ::
((
Rgraph
sym
var
)->(
sym
,[
var
]))
sym
->
(
Trace
sym
var
pvar
)
->
(
Bool
,([
Bool
],
Fun
Body
sym
var
,[
Rgraph
sym
var
]))
->
(
Bool
,([
Bool
],
Fun
cDef
sym
var
,[
Rgraph
sym
var
]))
|
==
sym
&
==
var
&
==
pvar
...
...
@@ -159,7 +159,7 @@ foldtips ::
(
sym
,[
var
])
->
([(
var
,
Graph
sym
var
)],[(
var
,
Graph
sym
var
)])
(
Trace
sym
var
pvar
)
->
(
Bool
,([
Bool
],
Fun
Body
sym
var
,[
Rgraph
sym
var
]))
->
(
Bool
,([
Bool
],
Fun
cDef
sym
var
,[
Rgraph
sym
var
]))
|
==
sym
&
==
var
&
==
pvar
...
...
@@ -228,7 +228,7 @@ newextract ::
(
Etracer
sym
var
pvar
)
((
Rgraph
sym
var
)->(
sym
,[
var
]))
(
Trace
sym
var
pvar
)
->
([
Bool
],
Fun
Body
sym
var
,[
Rgraph
sym
var
])
->
([
Bool
],
Fun
cDef
sym
var
,[
Rgraph
sym
var
])
|
==
sym
&
==
var
&
==
pvar
...
...
sucl/newtest.dcl
View file @
e1479b2e
...
...
@@ -4,7 +4,7 @@ definition module newtest
from
cli
import
Cli
from
coreclean
import
SuclTypeSymbol
,
SuclTypeVariable
,
SuclSymbol
,
SuclVariable
from
newfold
import
Fun
Body
from
newfold
import
Fun
cDef
from
trace
import
Trace
,
Transformation
from
spine
import
Answer
,
Spine
,
Subspine
from
history
import
History
,
HistoryAssociation
,
HistoryPattern
...
...
@@ -17,7 +17,7 @@ from general import Optional
,
srr_strictness
::
[
Bool
]
// Strictness annotations
,
srr_typerule
::
Rule
tsym
tvar
// Type rule
,
srr_trace
::
Trace
sym
var
var
// Truncated and folded trace
,
srr_function_
body
::
Fun
Body
sym
var
// Resulting rewrite rules
,
srr_function_
def
::
Fun
cDef
sym
var
// Resulting rewrite rules
,
srr_areas
::
[
Rgraph
sym
var
]
// New areas for further symbolic reduction (not necessarily canonical)
}
...
...
sucl/newtest.icl
View file @
e1479b2e
...
...
@@ -153,7 +153,7 @@ these tuples.
,
srr_strictness
::
[
Bool
]
// Strictness annotations
,
srr_typerule
::
Rule
tsym
tvar
// Type rule
,
srr_trace
::
Trace
sym
var
var
// Truncated and folded trace
,
srr_function_
body
::
Fun
Body
sym
var
// Resulting rewrite rules
,
srr_function_
def
::
Fun
cDef
sym
var
// Resulting rewrite rules
,
srr_areas
::
[
Rgraph
sym
var
]
// New areas for further symbolic reduction (not necessarily canonical)
}
...
...
@@ -357,7 +357,7 @@ symredarea foldarea cli area
,
srr_strictness
=
stricts
,
srr_typerule
=
trule
,
srr_trace
=
trace
,
srr_function_
body
=
rules
,
srr_function_
def
=
rules
,
srr_areas
=
areas
}
where
agraph
=
rgraphgraph
area
;
aroot
=
rgraphroot
area
...
...
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