diff options
| author | Maxime Dénès | 2018-10-11 12:30:50 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2018-10-11 12:30:50 +0200 |
| commit | 4a244648cff78c7f7333ac5b335de3f6e742908a (patch) | |
| tree | 717b267cc2e2ae1359bfcb2bb7f30b2f5bde9640 /plugins/derive | |
| parent | 2bdc3a06c5620bf4796501562886b26f8c1ef895 (diff) | |
| parent | bc240341d9f0f7466c82e8ee9f3f325cda6fc3bf (diff) | |
Merge PR #8161: Implement VERNAC EXTEND in coqpp
Diffstat (limited to 'plugins/derive')
| -rw-r--r-- | plugins/derive/g_derive.mlg (renamed from plugins/derive/g_derive.ml4) | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/derive/g_derive.ml4 b/plugins/derive/g_derive.mlg index a59324149c..18316bf2cd 100644 --- a/plugins/derive/g_derive.ml4 +++ b/plugins/derive/g_derive.mlg @@ -8,13 +8,21 @@ (* * (see LICENSE file for the text of the license) *) (************************************************************************) +{ + open Stdarg +} + DECLARE PLUGIN "derive_plugin" +{ + let classify_derive_command _ = Vernacexpr.(VtStartProof ("Classic",Doesn'tGuaranteeOpacity,[]),VtLater) -VERNAC COMMAND EXTEND Derive CLASSIFIED BY classify_derive_command +} + +VERNAC COMMAND EXTEND Derive CLASSIFIED BY { classify_derive_command } | [ "Derive" ident(f) "SuchThat" constr(suchthat) "As" ident(lemma) ] -> - [ Derive.start_deriving f suchthat lemma ] + { Derive.start_deriving f suchthat lemma } END |
