Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alphaLib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
POTTIER Francois
alphaLib
Commits
5b20b800
Commit
5b20b800
authored
Feb 09, 2017
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed [fresha] to [copy].
parent
2c528d10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/Atom.ml
src/Atom.ml
+2
-2
src/Atom.mli
src/Atom.mli
+1
-1
src/KitCopy.ml
src/KitCopy.ml
+1
-1
No files found.
src/Atom.ml
View file @
5b20b800
...
...
@@ -81,9 +81,9 @@ let fresh hint =
and
hint
=
share
(
remove_trailing_digits
hint
)
in
{
identity
;
hint
}
(* [
fresha
a] returns a fresh atom modeled after the atom [a]. *)
(* [
copy
a] returns a fresh atom modeled after the atom [a]. *)
let
fresha
a
=
let
copy
a
=
fresh
a
.
hint
(* -------------------------------------------------------------------------- *)
...
...
src/Atom.mli
View file @
5b20b800
...
...
@@ -15,7 +15,7 @@ val print: out_channel -> atom -> unit
(* Producing fresh atoms. *)
val
fresh
:
string
->
atom
val
fresha
:
atom
->
atom
val
copy
:
atom
->
atom
(* Comparison of atoms. *)
...
...
src/KitCopy.ml
View file @
5b20b800
...
...
@@ -17,7 +17,7 @@ let lookup env x =
let
extend
x
env
=
(* Generate a fresh copy of [x]. *)
let
x'
=
Atom
.
fresha
x
in
let
x'
=
Atom
.
copy
x
in
(* Extend [env] when descending in the body. *)
x'
,
Atom
.
Map
.
add
x
x'
env
...
...
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