aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2003-09-25 13:09:59 +0000
committerherbelin2003-09-25 13:09:59 +0000
commita7b86178bf4f4cdf49e041c9242c083af050397f (patch)
tree68f4388b35ccc0fb0b29466ac920e4240ba18c51
parent22d0ce23a0865c1a68636d3feb1f490b13a49fb9 (diff)
V8Infix declarait a tort une regle d'interpretation V7
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4473 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--toplevel/metasyntax.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/toplevel/metasyntax.ml b/toplevel/metasyntax.ml
index cb13d57a89..82a2d60960 100644
--- a/toplevel/metasyntax.ml
+++ b/toplevel/metasyntax.ml
@@ -942,10 +942,10 @@ let add_infix local assoc n inf pr onlyparse mv8 sc =
let a_for_old = interp_rawconstr_gen
false Evd.empty (Global.env()) [] false (vars,[]) a in
add_notation_interpretation_core local symbs None df a' sc
- onlyparse false
+ onlyparse true
else
- let v8 = match v8 with None -> 1 | Some n -> n in
- let a8 = match a8 with None -> Gramext.LeftA | Some a -> a in
+ let v8 = match v8 with None -> error "Needs a level" | Some n -> n in
+ let a8 = match a8 with None -> Gramext.NonA | Some a -> a in
let mods =
SetAssoc a8::SetLevel v8::(if onlyparse then [SetOnlyParsing] else [])
in