aboutsummaryrefslogtreecommitdiff
path: root/parsing
diff options
context:
space:
mode:
authoraspiwack2012-03-30 12:51:23 +0000
committeraspiwack2012-03-30 12:51:23 +0000
commitc2c41a164c5eecc62995752ec9e22904cf7e7cd1 (patch)
tree7c9f9a707f0906ce0fb21b16188e29bd425a851e /parsing
parent1e1b6828c29b1344f50f94f9d3a6fce27a885656 (diff)
Added a command "Unfocused" which returns an error when the proof is
not fully unfocused (in the style of the Guarded command). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15104 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
-rw-r--r--parsing/g_proofs.ml41
-rw-r--r--parsing/ppvernac.ml1
2 files changed, 2 insertions, 0 deletions
diff --git a/parsing/g_proofs.ml4 b/parsing/g_proofs.ml4
index 9adcde1113..5036c01e37 100644
--- a/parsing/g_proofs.ml4
+++ b/parsing/g_proofs.ml4
@@ -60,6 +60,7 @@ GEXTEND Gram
| IDENT "Focus" -> VernacFocus None
| IDENT "Focus"; n = natural -> VernacFocus (Some n)
| IDENT "Unfocus" -> VernacUnfocus
+ | IDENT "Unfocused" -> VernacUnfocused
| IDENT "BeginSubproof" -> VernacSubproof None
| IDENT "BeginSubproof"; n = natural -> VernacSubproof (Some n)
| IDENT "EndSubproof" -> VernacEndSubproof
diff --git a/parsing/ppvernac.ml b/parsing/ppvernac.ml
index 75442631c4..0852f846ac 100644
--- a/parsing/ppvernac.ml
+++ b/parsing/ppvernac.ml
@@ -439,6 +439,7 @@ let rec pr_vernac = function
| VernacAbortAll -> str "Abort All"
| VernacRestart -> str"Restart"
| VernacUnfocus -> str"Unfocus"
+ | VernacUnfocused -> str"Unfocused"
| VernacGoal c -> str"Goal" ++ pr_lconstrarg c
| VernacAbort id -> str"Abort" ++ pr_opt pr_lident id
| VernacUndo i -> if i=1 then str"Undo" else str"Undo" ++ pr_intarg i