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
ebe29a7b
Commit
ebe29a7b
authored
Feb 03, 2017
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First run of the typechecker.
parent
6ad4282d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
demos/system-F-type/Main.ml
demos/system-F-type/Main.ml
+19
-1
No files found.
demos/system-F-type/Main.ml
View file @
ebe29a7b
module
T
=
FTypeChecker
open
Printf
open
AlphaLib
open
F
open
FTypeChecker
let
identity
:
raw_term
=
TeTyAbs
(
"A"
,
TeAbs
(
"x"
,
TyArrow
(
TyVar
"A"
,
TyVar
"A"
)
,
TeVar
"x"
))
let
identity
:
nominal_term
=
import_term
KitImport
.
empty
identity
let
ty
:
nominal_typ
=
typeof
identity
let
ty
:
raw_typ
=
export_typ
KitExport
.
empty
ty
let
()
=
printf
"Success.
\n
%!"
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