-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
105 additions
and
1 deletion.
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
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,14 @@ | ||
(* The only difference between 4.14 and 5.0 from a Parsetree point of view are the magic numbers *) | ||
|
||
module Asttypes = struct | ||
include Ast_414.Asttypes | ||
end | ||
|
||
module Parsetree = struct | ||
include Ast_414.Parsetree | ||
end | ||
|
||
module Config = struct | ||
let ast_impl_magic_number = "Caml1999M032" | ||
let ast_intf_magic_number = "Caml1999N032" | ||
end |
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,40 @@ | ||
module From = Ast_414 | ||
module To = Ast_500 | ||
|
||
let copy_structure : Ast_414.Parsetree.structure -> Ast_500.Parsetree.structure | ||
= | ||
fun x -> x | ||
|
||
let copy_signature : Ast_414.Parsetree.signature -> Ast_500.Parsetree.signature | ||
= | ||
fun x -> x | ||
|
||
let copy_toplevel_phrase : | ||
Ast_414.Parsetree.toplevel_phrase -> Ast_500.Parsetree.toplevel_phrase = | ||
fun x -> x | ||
|
||
let copy_core_type : Ast_414.Parsetree.core_type -> Ast_500.Parsetree.core_type | ||
= | ||
fun x -> x | ||
|
||
let copy_expression : | ||
Ast_414.Parsetree.expression -> Ast_500.Parsetree.expression = | ||
fun x -> x | ||
|
||
let copy_pattern : Ast_414.Parsetree.pattern -> Ast_500.Parsetree.pattern = | ||
fun x -> x | ||
|
||
let copy_case : Ast_414.Parsetree.case -> Ast_500.Parsetree.case = fun x -> x | ||
|
||
let copy_type_declaration : | ||
Ast_414.Parsetree.type_declaration -> Ast_500.Parsetree.type_declaration = | ||
fun x -> x | ||
|
||
let copy_type_extension : | ||
Ast_414.Parsetree.type_extension -> Ast_500.Parsetree.type_extension = | ||
fun x -> x | ||
|
||
let copy_extension_constructor : | ||
Ast_414.Parsetree.extension_constructor -> | ||
Ast_500.Parsetree.extension_constructor = | ||
fun x -> x |
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,40 @@ | ||
module From = Ast_500 | ||
module To = Ast_414 | ||
|
||
let copy_structure : Ast_500.Parsetree.structure -> Ast_414.Parsetree.structure | ||
= | ||
fun x -> x | ||
|
||
let copy_signature : Ast_500.Parsetree.signature -> Ast_414.Parsetree.signature | ||
= | ||
fun x -> x | ||
|
||
let copy_toplevel_phrase : | ||
Ast_500.Parsetree.toplevel_phrase -> Ast_414.Parsetree.toplevel_phrase = | ||
fun x -> x | ||
|
||
let copy_core_type : Ast_500.Parsetree.core_type -> Ast_414.Parsetree.core_type | ||
= | ||
fun x -> x | ||
|
||
let copy_expression : | ||
Ast_500.Parsetree.expression -> Ast_414.Parsetree.expression = | ||
fun x -> x | ||
|
||
let copy_pattern : Ast_500.Parsetree.pattern -> Ast_414.Parsetree.pattern = | ||
fun x -> x | ||
|
||
let copy_case : Ast_500.Parsetree.case -> Ast_414.Parsetree.case = fun x -> x | ||
|
||
let copy_type_declaration : | ||
Ast_500.Parsetree.type_declaration -> Ast_414.Parsetree.type_declaration = | ||
fun x -> x | ||
|
||
let copy_type_extension : | ||
Ast_500.Parsetree.type_extension -> Ast_414.Parsetree.type_extension = | ||
fun x -> x | ||
|
||
let copy_extension_constructor : | ||
Ast_500.Parsetree.extension_constructor -> | ||
Ast_414.Parsetree.extension_constructor = | ||
fun x -> x |
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