-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from butterunderflow/dev-type-checker
type checker implementation
- Loading branch information
Showing
24 changed files
with
3,640 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
uses: ocaml/[email protected] | ||
with: | ||
# The OCaml compiler packages to initialise. | ||
ocaml-compiler: 4.14.0 | ||
ocaml-compiler: 4.13.1 | ||
# The name and URL pair of the repository to fetch the packages from. | ||
|
||
- name: Install menhir | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
type t [@@deriving sexp, compare] | ||
val compare_string : String.t -> String.t -> int | ||
|
||
val same : t -> t -> bool | ||
val compare_int : int -> int -> int | ||
|
||
val from : string -> t | ||
type ident [@@deriving sexp, show] | ||
|
||
val create : hint:string -> t | ||
type t = ident [@@deriving compare] | ||
|
||
val rename : t -> t | ||
val name_of_ident : ident -> string | ||
|
||
val to_string : t -> string | ||
val index_of_ident : ident -> int | ||
|
||
val mk_ident : int -> string -> ident | ||
|
||
val same : ident -> ident -> bool | ||
|
||
val from : string -> ident | ||
|
||
val create : hint:string -> ident | ||
|
||
val rename : ident -> ident | ||
|
||
val to_string : ident -> string | ||
|
||
val refresh : unit -> unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.