Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
2a535dfa
Commit
2a535dfa
authored
Mar 30, 2014
by
MARCHE Claude
Browse files
Abstract machine CEK for lambda-calculus
parent
a2b80280
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/in_progress/
kam
.mlw
→
examples/in_progress/
cek
.mlw
View file @
2a535dfa
...
...
@@ -188,14 +188,14 @@ type context =
(** The CEK abstract machine :
{h <blockquote><pre>
<
x, e, C
>
_eval ->
<C, v>
_cont
(
x, e, C
)
_eval ->
(C, v)
_cont
where v = lookup x e
<
\x.t, e, C
>
_eval ->
<
C, (\x.t, e)
>
_cont
<
t0 t1, e, C
>
_eval ->
<
t0, e, [C (t1, e)]
>
_eval
(
\x.t, e, C
)
_eval ->
(
C, (\x.t, e)
)
_cont
(
t0 t1, e, C
)
_eval ->
(
t0, e, [C (t1, e)]
)
_eval
<
[], v
>
_cont -> v
<
[C (t, e)], v
>
_cont ->
<
t, e, [v C]
>
_eval
<
[(\x.t, e) C], v
>
_cont ->
<
t, (x, v) :: e, C
>
_eval
(
[], v
)
_cont -> v
(
[C (t, e)], v
)
_cont ->
(
t, e, [v C]
)
_eval
(
[(\x.t, e) C], v
)
_cont ->
(
t, (x, v) :: e, C
)
_eval
</pre></blockquote>}
*)
...
...
examples/in_progress/
kam
/why3session.xml
→
examples/in_progress/
cek
/why3session.xml
View file @
2a535dfa
File moved
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