Commit Graph

151 Commits (8be30254e2f38835f1530220a4b790e2c9cfb134)

Author SHA1 Message Date
Alain Frisch cbf93255c5 Doc.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13374 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-07 15:29:30 +00:00
Alain Frisch 07e81b2f0d Examples. Also accept uppercase idents (and some keywords) as ids for attributes/extension nodes.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13373 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-07 15:29:11 +00:00
Alain Frisch eaf9e3744a It is now possible to start a signature or a structure with a ';;' token and to have two successive ';;' tokens.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13372 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-07 14:15:23 +00:00
Alain Frisch 72a638757c Stand-alone ("floating") sig_item/str_item attributes now use the
standard syntax for item attributes.  They are recognized at the 
beginning of the signature/structure and after a ";;" token.



git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13371 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-07 13:46:44 +00:00
Alain Frisch 63b229658e Remove prefix syntax for attributes.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13368 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-07 13:00:01 +00:00
Alain Frisch 076eca73cc Alternative syntax for some constructions starting with a keyword.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13364 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-06 14:53:39 +00:00
Alain Frisch 9f8b148761 More doc.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13363 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-06 14:29:04 +00:00
Alain Frisch 8055753e58 Typo.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13362 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-06 13:51:39 +00:00
Alain Frisch 97c5f1a253 Attributes on label in record type declarations.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13361 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-06 13:51:18 +00:00
Alain Frisch cb3b398308 Document the changes on the branch.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13360 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-06 12:57:56 +00:00
Jacques Garrigue d762415084 pprintast
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13287 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-02-01 02:21:21 +00:00
Jacques Garrigue 0212750b67 subtyping of impure functors
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13286 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-31 07:01:52 +00:00
Jacques Garrigue 7e1ef88057 fix unsoundness of impure functors with unpack
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13279 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-25 11:09:43 +00:00
Jacques Garrigue 9cf0614300 error message + allow unpack in impure functor body
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13275 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-25 02:11:04 +00:00
Jacques Garrigue 0582aa4f49 very cheap impure (generative) functors
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13274 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-24 08:31:04 +00:00
Jacques Garrigue 442c84b40a delayed check for absent variant constructors in patterns
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13160 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-27 01:38:01 +00:00
Jacques Garrigue 9ba15d4e82 do not diff the patch itself
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13159 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-25 04:32:23 +00:00
Jacques Garrigue 5011d90eb8 only need to copy if pattern contains polymorphic variants
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13158 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-25 04:28:12 +00:00
Jacques Garrigue 030e9d8f10 propagate type information to patterns, even with polymorphic variants
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13147 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-21 07:50:19 +00:00
Alain Frisch 0cdf38d6e6 Move ast_mapper.ml to tools/.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13083 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-11-08 14:27:22 +00:00
Alain Frisch e6eefc3af7 Adapt to changes.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13023 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-17 15:40:28 +00:00
Jacques Garrigue 99378f81be introduce local types in patterns
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13007 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-12 01:08:23 +00:00
Alain Frisch 631cac94cb Fix.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12932 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-09-18 16:30:32 +00:00
Alain Frisch 6a8f1cbb9a Sync with Lexifi's version of ast_mapper.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12931 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-09-18 15:55:30 +00:00
Damien Doligez 997a678d5e clean up TABs and whitespace
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12799 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-30 18:04:46 +00:00
Alain Frisch e81cd4ac29 Automatically wrap fields with Ptyp_poly.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12789 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-27 17:11:05 +00:00
Alain Frisch aebeab4cae Polishing.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12768 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-24 14:32:47 +00:00
Alain Frisch 451fb8ab52 Continue js syntax example.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12767 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-24 13:59:30 +00:00
Alain Frisch 9174ed2a4a Another example: syntax for javascript properties in js_of_ocaml.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12766 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-24 12:48:39 +00:00
Alain Frisch c0634a67ac One more example: instrument method calls.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12764 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-24 09:53:48 +00:00
Alain Frisch 0e45ab3961 Continue AST mapper.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12762 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-24 08:40:50 +00:00
Alain Frisch 07a3f52d76 Extend ifdef example, with a compile-time getenv.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12655 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-29 10:04:17 +00:00
Alain Frisch 9d32d89108 Better error report.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12654 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-29 09:49:52 +00:00
Alain Frisch 8531a5c8ee Continue demo of ast mapper.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12653 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-29 09:36:32 +00:00
Alain Frisch 60d0694e9f #5634: parstree rewriters (merge with ast_rewriter branch).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12597 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-13 08:00:27 +00:00
Jacques Garrigue d8f8f9ee3b keep the text width to 80 columns
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12522 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-31 08:07:31 +00:00
Jacques Garrigue 9e744ea2db a patch to allow 'with module type S = ...' and 'S := ...'
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12007 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-10 04:10:41 +00:00
Jacques Garrigue a18ae2e959 patch to move id creation to the C side
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11974 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-29 06:49:06 +00:00
Jacques Garrigue dd29cb76ea A small patch to call 'bind' for syntax 'let x <- expr in cont'
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11959 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-27 08:54:18 +00:00
Jacques Garrigue 7ff9d50434 trim module signatures
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11318 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-15 10:20:50 +00:00
Jacques Garrigue 6cc516aec6 A patch adding primitives to browse types in the toplevel
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11317 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-15 07:58:02 +00:00
Jacques Garrigue 6d52c986c1 update patch
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11216 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-10-05 13:08:21 +00:00
Jacques Garrigue 40f0a5e04c another approach to principality
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11212 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-09-27 22:36:41 +00:00
Jacques Garrigue ac275d142b fix gadt type variables
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11211 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-09-27 06:37:06 +00:00
Jacques Garrigue 5b34aabb04 patch for better module errors
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11209 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-09-22 08:06:43 +00:00
Jacques Garrigue cf1e36f9a9 update patch
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11208 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-09-22 07:16:52 +00:00
Damien Doligez d9eb848d86 PR#5238, PR#5277: Sys_error when getting error location
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11166 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-08-04 14:59:13 +00:00
Damien Doligez 3b507dd1aa renaming of Objective Caml to OCaml and cleanup of copyright headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Jacques Garrigue d34034ca49 remove garbage from patch
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11146 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-23 11:39:02 +00:00
Jacques Garrigue e5d0fb1786 patch for keeping variable names
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11145 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-23 11:24:31 +00:00
Xavier Clerc efb3949fef 'testlabl' renamed to 'experimental/garrigue'.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11140 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-21 07:53:50 +00:00