Rodolphe Lepigre
70efc8555a
Added missing headers in [typing/typedecl_*.mli].
2018-11-24 00:06:26 +01:00
Gabriel Scherer
1d9f852f15
Changes entry
2018-11-23 12:05:33 +01:00
Rodolphe Lepigre
ca227428f4
Typedecl: split immediacy to a separate unit Typedecl_variance
...
get_unboxed_type_representation is used in several other modules, and
split into its own Typedecl_unboxed unit.
(pair-programming with Gabriel Scherer)
2018-11-23 12:05:33 +01:00
Gabriel Scherer
24ea989c02
Typedecl: split variance to a separate unit Typedecl_variance
...
(pair-programming with Rodolphe Lepigre)
2018-11-23 12:05:33 +01:00
Gabriel Scherer
0e0b10fd75
Typedecl: split abstract properties to a separate unit Typedecl_properties
...
(pair-programming with Rodolphe Lepigre)
2018-11-23 12:03:11 +01:00
Alain Frisch
4c130cae87
Fix wrong calls to Env.normalize_path on non-module paths ( #2131 )
2018-11-22 16:07:15 +01:00
Gabriel Scherer
f6837be875
Merge pull request #2151 from fpottier/improvements
...
Parser improvements, with a possible bug fix along the way.
2018-11-22 08:23:58 +01:00
François Pottier
561c5eb25f
Enrich `testsuite/tests/parsing/docstrings.ml`.
...
Add docstrings that the current parser drops or misplaces.
This is fixed by GPR#2151.
2018-11-21 23:21:15 +01:00
Nicolás Ojeda Bär
ea6ce526e7
Update Changes
2018-11-21 20:41:35 +01:00
Nicolás Ojeda Bär
abbc5f3ff4
Merge pull request #2159 from ppedrot/string-equal-noalloc
...
Mark the String.equal external as not-allocating C.
2018-11-21 20:38:40 +01:00
Pierre-Marie Pédrot
94175c9f60
Mark the Bytes.equal external as not-allocating C.
2018-11-21 13:09:42 +01:00
Pierre-Marie Pédrot
7a53fe1cf9
Mark the String.equal external as not-allocating C.
...
It is indeed a mere loop that does not allocate. This function was probably
forgotten because its code was hidden deep in the module.
2018-11-21 11:43:08 +01:00
Thomas Refis
c78e2a6213
compify_dynlink: bash=>sh ( #2158 )
2018-11-21 10:41:04 +01:00
Leo White
6bdce9ee46
Add changes entry
2018-11-21 03:39:34 -05:00
Leo White
fc1e6ad5a2
Update .depend
2018-11-21 03:39:34 -05:00
Leo White
f7fd84f877
Add tests
2018-11-21 03:39:34 -05:00
Leo White
a0c07833a4
Bootstrap
2018-11-21 03:39:34 -05:00
Leo White
111d4e1827
Remove positions from paths
2018-11-21 03:39:34 -05:00
François Pottier
108d8c6cf0
Convert CONFLICTS to markdown format.
2018-11-21 00:06:29 +01:00
François Pottier
a2bc023128
Convert VIPs to markdown format.
2018-11-21 00:06:29 +01:00
François Pottier
4cdcec5558
Run `make promote-menhir` using Menhir 20181113.
2018-11-21 00:06:29 +01:00
François Pottier
c69c63e25d
Share `constructor_declaration` and `extension_constructor_declaration`.
2018-11-21 00:06:29 +01:00
François Pottier
4997d2e11e
Mark `let_exception_declaration` as %inline.
2018-11-21 00:06:29 +01:00
François Pottier
d1d3457e1f
Manually inline one occurrence of `ext_attributes`.
2018-11-21 00:06:29 +01:00
François Pottier
6f2e8faac3
Simplify `toplevel_directive`.
2018-11-21 00:06:29 +01:00
François Pottier
a2c81033f8
Mark `label` as %inline.
2018-11-21 00:06:29 +01:00
François Pottier
85460203cb
Mark `field` and `field_semi` as %inline.
2018-11-21 00:06:29 +01:00
François Pottier
896310d5e6
Clean up `meth_list`.
2018-11-21 00:06:29 +01:00
François Pottier
7cc898ea15
Introduce `inherit_field`. Manually inline away `inherit_field_semi`.
2018-11-21 00:06:29 +01:00
François Pottier
ab0f07e0ca
Mark `package_type` as %inline.
2018-11-21 00:06:29 +01:00
François Pottier
f464f9c04b
Mention this PR in Changes.
2018-11-21 00:06:21 +01:00
Thomas Refis
5daea80728
fix partialclean for compdynlink_common (review and approved by mshinwell)
2018-11-20 15:46:48 +00:00
François Pottier
7c813af6e1
Yet more sharing in `nonempty_type_kind`.
2018-11-20 15:35:48 +01:00
François Pottier
47b9548614
Improve sharing in `nonempty_type_kind`.
2018-11-20 15:22:02 +01:00
François Pottier
2e468ed926
Avoid parameterization of `nonempty_type_kind`.
2018-11-20 15:13:26 +01:00
Thomas Refis
aa77d3b93d
fix dune build following natdynlink modifications ( #2154 )
...
- silence some principality warning in otherlibs/dynlink
- shared some script between the makefile and the dune files
2018-11-20 15:06:47 +01:00
François Pottier
bf6faef1c5
Add a test to exercise [type nonrec t := u], an error.
2018-11-20 14:50:30 +01:00
François Pottier
bbb7ae550d
Share the definitions of `type_declarations` and `type_subst_declarations`.
2018-11-20 14:50:30 +01:00
François Pottier
c30c08bd1f
Clean up `type_subst_declaration` and `and_type_subst_declaration`.
2018-11-20 14:50:30 +01:00
François Pottier
7623360d54
Remove the auxiliary function `check_nonrec_absent`.
...
Just use `no_nonrec_flag` to indicate that a `nonrec` flag is forbidden.
2018-11-20 14:50:30 +01:00
François Pottier
25a654d4eb
Clean up `module_subst`.
2018-11-20 14:50:30 +01:00
François Pottier
300921adf3
More sharing in `lbl_pattern`.
...
`lbl_pattern` now has only one branch and can be inlined
without blowing up the automaton.
2018-11-20 13:47:35 +01:00
François Pottier
78529812ec
Cleanup in `lbl_pattern`.
2018-11-20 13:47:35 +01:00
François Pottier
81a7e49a30
New auxiliary function `loc_last`.
2018-11-20 13:47:35 +01:00
François Pottier
554555683c
Introduce `listx(delimiter, X, Y)` as an abstraction of `lbl_pattern_list`.
...
The automaton is unchanged.
2018-11-20 13:47:35 +01:00
François Pottier
a8c68f87b3
Remove `opt_bar` and `opt_semi`.
2018-11-20 13:47:35 +01:00
François Pottier
f1882c2a71
Remove the duplication between `pattern` and `pattern_no_exn`
...
by using a parameterized definition. Add a pedantic comment.
2018-11-20 13:47:35 +01:00
François Pottier
c002a6b30f
Share `pattern_comma_list` and `pattern_no_exn_comma_list`.
2018-11-20 13:47:35 +01:00
François Pottier
7f5f9c3207
Remove `opt_pattern_type_constraint`.
2018-11-20 13:47:35 +01:00
François Pottier
6d50aa60ce
Simplify `opt_default`.
2018-11-20 13:47:35 +01:00