diff options
| author | Pierre-Marie Pédrot | 2017-08-02 14:14:14 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-08-02 16:06:16 +0200 |
| commit | ea782d757d57dc31be9714edc607128c5c127205 (patch) | |
| tree | 99c7c676b6bc9557202971a87c01c0dfbdd4305f /doc | |
| parent | da8eec98d095482c0e12c0ece9725a300e5f3d57 (diff) | |
Extending the set of tactic scopes.
We now allow mere tokens, keywords and sequencing amongst others.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/ltac2.md | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/ltac2.md b/doc/ltac2.md index 7a3b2181f8..12687e9aff 100644 --- a/doc/ltac2.md +++ b/doc/ltac2.md @@ -552,8 +552,19 @@ The following scopes are built-in. - tactic(n = INT): + parses a Ltac2 expression at the provided level *n* and return it as is. - thunk(*scope*): - parses the same as *scope*, and if *e* is the parsed expression, returns + + parses the same as *scope*, and if *e* is the parsed expression, returns `fun () => e`. +- STRING: + + parses the corresponding string as a CAMLP5 IDENT and returns `()`. +- keyword(s = STRING): + + parses the string *s* as a keyword and returns `()`. +- terminal(s = STRING): + + parses the string *s* as a keyword, if it is already a + keyword, otherwise as an IDENT. Returns `()`. +- seq(*scope₁*, ..., *scopeₙ*): + + parses *scope₁*, ..., *scopeₙ* in this order, and produces a n-tuple made + out of the parsed values in the same order. It is forbidden for the various + subscopes to refer to the global entry using self of next. For now there is no way to declare new scopes from Ltac2 side, but this is planned. |
