-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use a single shared AST instead of a functorized one, use object types
and GADTs to forbid some constructors in a given AST
- Loading branch information
1 parent
818e269
commit 9c35387
Showing
65 changed files
with
1,567 additions
and
1,491 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
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,14 +1,16 @@ | ||
open Types | ||
|
||
type t = | ||
{ id : string option | ||
; typ : Simplified.str_type Named.t | ||
; global : (Text.global, Simplified.global_type) Runtime.t Named.t | ||
; table : (Simplified.table, Simplified.table_type) Runtime.t Named.t | ||
; typ : simplified str_type Named.t | ||
; global : (Text.global, simplified global_type) Runtime.t Named.t | ||
; table : (simplified table, simplified table_type) Runtime.t Named.t | ||
; mem : (Types.mem, Types.limits) Runtime.t Named.t | ||
; func : (Text.func, Text.block_type) Runtime.t Named.t | ||
; func : (text func, (text, text) block_type) Runtime.t Named.t | ||
; elem : Text.elem Named.t | ||
; data : Text.data Named.t | ||
; exports : Grouped.opt_exports | ||
; start : Text.indice option | ||
; start : text indice option | ||
} | ||
|
||
val of_grouped : Grouped.t -> t Result.t |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
val cmd : bool -> bool -> bool -> string list -> bool -> 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
(** runtime global *) | ||
|
||
open Types | ||
|
||
type t = | ||
{ mutable value : Concrete_value.t | ||
; label : string option | ||
; mut : Types.mut | ||
; typ : Simplified.val_type | ||
; mut : mut | ||
; typ : simplified val_type | ||
} | ||
|
||
val value : t -> Concrete_value.t | ||
|
||
val set_value : t -> Concrete_value.t -> unit | ||
|
||
val typ : t -> Simplified.val_type | ||
val typ : t -> simplified val_type | ||
|
||
val mut : t -> Types.mut | ||
val mut : t -> mut |
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
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.