diff options
| author | coqbot-app[bot] | 2020-11-14 21:45:11 +0000 |
|---|---|---|
| committer | GitHub | 2020-11-14 21:45:11 +0000 |
| commit | 6b7d6be8eb0b8c12804a53475e33c1489e3bc61e (patch) | |
| tree | 40262a9fc8d62a2491d9e5c0f2e49d79751ebe3a /doc/sphinx/language/extensions | |
| parent | 9a93f5836a5f7bab81384314ac11ff0aac7d1b7f (diff) | |
| parent | 15183aafe292695c54ae234a1210c08c8e3cd378 (diff) | |
Merge PR #13369: Move destructuring let syntax closer to its documentation.
Reviewed-by: jfehrle
Diffstat (limited to 'doc/sphinx/language/extensions')
| -rw-r--r-- | doc/sphinx/language/extensions/match.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/sphinx/language/extensions/match.rst b/doc/sphinx/language/extensions/match.rst index 23389eba3b..8e62c2af13 100644 --- a/doc/sphinx/language/extensions/match.rst +++ b/doc/sphinx/language/extensions/match.rst @@ -86,6 +86,13 @@ Pattern-matching on terms inhabiting inductive type having only one constructor can be alternatively written using :g:`let … in …` constructions. There are two variants of them. +.. insertprodn destructuring_let destructuring_let + +.. prodn:: + destructuring_let ::= let ( {*, @name } ) {? {? as @name } return @term100 } := @term in @term + | let ' @pattern := @term {? return @term100 } in @term + | let ' @pattern in @pattern := @term return @term100 in @term + First destructuring let syntax ++++++++++++++++++++++++++++++ |
