Alain Frisch
|
fc9f8ee63f
|
Style.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13533 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-16 07:37:16 +00:00 |
Alain Frisch
|
dd200d9553
|
Allow the method body to be represented by a non Pexp_poly expression in the Parsetree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13530 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-15 17:26:32 +00:00 |
Alain Frisch
|
abeb8c97f2
|
Document when Ptyp_poly can appear.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13529 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-15 16:47:27 +00:00 |
Alain Frisch
|
e7736899fb
|
Explicit representation of guards, get rid of Pexp_when.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13528 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-15 16:23:22 +00:00 |
Alain Frisch
|
c16b98ec9f
|
Document expressions.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13520 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-12 17:20:47 +00:00 |
Alain Frisch
|
b22d47ec0f
|
Document patterns.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13519 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-12 16:53:55 +00:00 |
Alain Frisch
|
0c0292340e
|
Typo.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13518 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-12 16:10:35 +00:00 |
Alain Frisch
|
57f1133e0a
|
Represent the closed flag of Ptyp_variant using closed_flag instead of bool, and start documenting the Parsetree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13517 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-12 16:08:52 +00:00 |
Alain Frisch
|
f7fee51ae3
|
Example of simple type-driven code generation.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13513 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-11 15:26:24 +00:00 |
Alain Frisch
|
04de43bee5
|
Attributes on Pstr_eval.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13512 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-11 14:07:32 +00:00 |
Alain Frisch
|
92ad47d47b
|
Keep item attributes on let-binding structure items.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13511 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-11 13:52:06 +00:00 |
Alain Frisch
|
8a9188eb3f
|
Forgot to show attributes.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13510 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-11 13:28:37 +00:00 |
Alain Frisch
|
feb3e48ffe
|
Continue convenience functions.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13509 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-11 12:57:59 +00:00 |
Alain Frisch
|
3a5b7fe6b4
|
Convenience functions to build AST + implicit location.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13508 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-11 12:50:38 +00:00 |
Alain Frisch
|
d5682ed9cf
|
A -ppx rewriter to evaluate expressions at compile time.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13506 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-11 12:21:02 +00:00 |
Alain Frisch
|
94106bf007
|
Starting to work on printing attributes in pprintast.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13505 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-11 07:53:48 +00:00 |
Alain Frisch
|
a929cdb339
|
Cosmetic.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13503 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-10 18:00:11 +00:00 |
Alain Frisch
|
90bbd25948
|
Extension nodes as class field or class type field.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13502 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-10 17:54:54 +00:00 |
Alain Frisch
|
6e36fd566b
|
Extension nodes and attributes for class types.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13501 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-10 17:44:15 +00:00 |
Alain Frisch
|
ee5f754a42
|
Attributes and extension points in class_expr.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13500 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-10 17:26:55 +00:00 |
Alain Frisch
|
91a1d41047
|
Cosmetic.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13498 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-10 12:37:56 +00:00 |
Alain Frisch
|
e2036c5a22
|
Start to bring constructor names closer to concrete syntax.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13497 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-10 11:17:41 +00:00 |
Alain Frisch
|
580bb34579
|
Renaming pcstr_pat -> pcstr_self, cstr_pat -> cstr_self.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13496 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-10 09:35:09 +00:00 |
Alain Frisch
|
71787e0228
|
Support dot-separated attributes for extensions and attributes.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13495 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-10 09:22:54 +00:00 |
Alain Frisch
|
ec9dacb3f1
|
Support for attributes on class type fields.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13494 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-10 09:17:22 +00:00 |
Alain Frisch
|
d84ae41182
|
Item attributes on class fields.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13493 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-09 15:54:41 +00:00 |
Alain Frisch
|
d1751e4738
|
Allow to not have empty Ptyp_poly node in the Parsetree (the type-checker insert them automatically).
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13491 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-09 14:10:54 +00:00 |
Alain Frisch
|
1eb1ec4c40
|
Get rid of core_field_type, more direct representation of object types.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13489 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-09 13:29:00 +00:00 |
Alain Frisch
|
47a3ee095e
|
Get rid of the Default case in Asttype.rec_flag.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13481 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-04 12:38:20 +00:00 |
Alain Frisch
|
8ebf39519e
|
Allow keywords as extension/attribute identifier.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13479 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-03 16:28:36 +00:00 |
Alain Frisch
|
27d523ea72
|
Better representation of variance in the Parsetree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13474 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-02 15:33:35 +00:00 |
Alain Frisch
|
f510f9b4a1
|
Support for quoted strings within comments.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13469 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-29 15:36:24 +00:00 |
Alain Frisch
|
842e50f530
|
Add entry points to parse expressions/types/patterns.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13466 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-29 09:45:45 +00:00 |
Alain Frisch
|
5a0a3605f3
|
Remove dead code.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13465 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-29 08:20:12 +00:00 |
Alain Frisch
|
180aabbc6b
|
Simplify.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13452 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-26 11:29:48 +00:00 |
Alain Frisch
|
6bfcb1da5b
|
Support for quoted strings.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13450 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-26 11:17:17 +00:00 |
Alain Frisch
|
fbde1f7e52
|
Align module and module type declarations between Parsetree and Typedtree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13443 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-25 17:47:28 +00:00 |
Alain Frisch
|
0b9347f482
|
Represent exception declarations as constructor declarations in the Parsetree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13442 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-25 15:49:10 +00:00 |
Alain Frisch
|
dd61fb5e55
|
Represent label and constructor declarations as records in the typedtree. Also keep return type for GADT constructors.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13441 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-25 14:56:56 +00:00 |
Alain Frisch
|
5c98dd91fe
|
Starting to keep attributes in the typedtree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13440 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-25 14:16:07 +00:00 |
Alain Frisch
|
f85f1e2759
|
Get rid of alternative syntax for '(module...)'.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13420 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-22 11:30:28 +00:00 |
Alain Frisch
|
b9ad592ac0
|
Infix syntax for attributes/extension nodes restricted to expression constructions starting with a (combination of) keywords.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13419 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-22 11:25:52 +00:00 |
Alain Frisch
|
b0987fd693
|
Attributes on expresions (etc) are now stored in the expression record, to facilitate pattern matching on structured fragments of AST while ignoring attributes. Introducing a new Ast_helper module to help creating AST fragments.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13381 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-08 14:59:45 +00:00 |
Alain Frisch
|
a483bbaaf4
|
Experimenting with alternative syntax for extension nodes (as an annotation on the opening keyword/delimiter).
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13378 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-08 09:17:30 +00:00 |
Alain Frisch
|
ab2a491ba0
|
Support attributes on opening delimiter/keyword for all kinds of expressions.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13377 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-08 08:42:53 +00:00 |
Alain Frisch
|
dec300a026
|
Allow seq_expr, not only expr as argument of attributes/extension nodes. This allows us to write [%do a; b; c <-- d; f c; ...].
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13376 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-08 08:18:01 +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
|
378c1d92df
|
Simplify.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13370 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-07 13:13:36 +00:00 |