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
|
3df9fa2762
|
Doc.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13492 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-09 14:12:27 +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
|
523bb6c541
|
Update.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13490 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-09 13:29:31 +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
|
10956770b4
|
Fix for Win32.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13487 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-05 07:08:37 +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
|
ef34950863
|
POC of a metaquotation expander.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13480 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-03 16:29:03 +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
|
1ce06c280e
|
Renaming, cleanup.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13478 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-03 14:13:09 +00:00 |
Alain Frisch
|
e6f98cb1b6
|
Clean up lifter.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13477 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-03 14:04:57 +00:00 |
Alain Frisch
|
5d45f81ebb
|
AST printer based on lifting.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13476 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-02 15:53:36 +00:00 |
Alain Frisch
|
2ba1aff69b
|
Generate a variantizer object, allowing to hook custom behavior.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13475 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-02 15:43:17 +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
|
3f2553305e
|
Finish variantizer generator.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13473 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-02 13:59:28 +00:00 |
Alain Frisch
|
bc0e2064fa
|
Done TODOs.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13472 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-04-02 12:40:58 +00:00 |
Alain Frisch
|
411da2cb46
|
Example of using Ast_helper to build AST fragments.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13470 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-29 16:49:05 +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
|
1a63c4659c
|
Filtering of location and empty attribute fields.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13468 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-29 12:50:51 +00:00 |
Alain Frisch
|
7f973bc330
|
A tool to dump the Parsetree in OCaml syntax (relies on the toplevel pretty-printer).
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13467 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-29 11:14:25 +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
|
ec5a284b0a
|
Adding a 'cass' example, combining extension node and quoted string.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13453 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-26 12:38:23 +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
|
1dd5243b54
|
Document changes to the Typedtree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13451 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-26 11:19:36 +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
|
422b75d398
|
Example of using attributes from .cmti files in a mini-ocamldoc.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13449 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-26 10:32:52 +00:00 |
Alain Frisch
|
c2c5b10685
|
Align module type binding with Parsetree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13448 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-26 08:21:29 +00:00 |
Alain Frisch
|
2ffa26af82
|
Align module binding with Parsetree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13447 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-26 08:09:26 +00:00 |
Alain Frisch
|
77d3fce857
|
Align exception_declaration with Parsetree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13446 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-25 18:42:45 +00:00 |
Alain Frisch
|
f4ca2da467
|
Align type_declaration with parsetree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13445 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-25 18:20:11 +00:00 |
Alain Frisch
|
25815e6e77
|
Align typed value_declaration with parsetree.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13444 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-25 18:04:40 +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
|
734a4b6816
|
Fix example.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13418 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-21 08:53:42 +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
|
556d070fdb
|
Adapt examples.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13380 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-08 09:36:55 +00:00 |
Alain Frisch
|
7c4129960b
|
Adapt examples.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13379 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-08 09:34:02 +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
|
a9148b249e
|
Typo.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13375 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
|
2013-03-07 15:33:13 +00:00 |
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 |