diff options
| author | Alain Frisch <alain@frisch.fr> | 2014-04-15 11:40:13 +0000 |
|---|---|---|
| committer | Alain Frisch <alain@frisch.fr> | 2014-04-15 11:40:13 +0000 |
| commit | ccb08e8f0bcd1d6600f963afc7b3a8fbabcbcaf5 (patch) | |
| tree | e14cc9bd661cf8fab78652679f03234de5b74147 /experimental | |
| parent | 6def4c5d98d5f414cbb83cd1049110c60db0c618 (diff) | |
| download | ocaml-ccb08e8f0bcd1d6600f963afc7b3a8fbabcbcaf5.tar.gz | |
Support for the let%foo syntax as structure item.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14600 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'experimental')
| -rw-r--r-- | experimental/frisch/extension_points.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/experimental/frisch/extension_points.txt b/experimental/frisch/extension_points.txt index b0961f7a0d..8305778434 100644 --- a/experimental/frisch/extension_points.txt +++ b/experimental/frisch/extension_points.txt @@ -122,6 +122,7 @@ As other structure item, signature item, class field or class type field, attributes can be attached to a [%%id s] extension node. + === Alternative syntax for attributes and extensions on specific kinds of nodes All expression constructions starting with a keyword (EXPR = KW REST) support an @@ -165,6 +166,10 @@ begin[@foo] ... end ==== (begin ... end)[@foo] match%foo e with ... ==== [%foo match e with ...] +The let-binding form of structure items also supports this form: + +let%foo x = ... ==== [%%foo let x = ...] + === Quoted strings Quoted strings gives a different syntax to write string literals in |
