aboutsummaryrefslogtreecommitdiff
path: root/parsing/notation_gram.ml
diff options
context:
space:
mode:
authorHugo Herbelin2019-12-25 23:37:41 +0100
committerHugo Herbelin2020-02-22 01:52:29 +0100
commit8b2c4ea19c7930939c6d6d540558f042a60ac391 (patch)
tree1892276e77bc54938fc53aa1e1a3056a5006ff79 /parsing/notation_gram.ml
parentb5bd769d725495d8c78c04d6721742e602a9b539 (diff)
Making structure of type "tolerability" and related clearer.
Also renamed it to relative_entry_level. Correspondence between old and new representation is: (n,L) -> LevelLt n (n,E), (n,Prec n) -> LevelLe n (n,Any) -> LevelSome (n,Prec p) when n<>p was unused Should not change global semantics (except error message in pr_arg).
Diffstat (limited to 'parsing/notation_gram.ml')
-rw-r--r--parsing/notation_gram.ml7
1 files changed, 2 insertions, 5 deletions
diff --git a/parsing/notation_gram.ml b/parsing/notation_gram.ml
index 9f133ca9d4..2fa9a496b7 100644
--- a/parsing/notation_gram.ml
+++ b/parsing/notation_gram.ml
@@ -10,14 +10,11 @@
open Names
open Extend
+open Constrexpr
(** Dealing with precedences *)
-type precedence = int
-type parenRelation = L | E | Any | Prec of precedence
-type tolerability = precedence * parenRelation
-
-type level = Constrexpr.notation_entry * precedence * tolerability list * constr_entry_key list
+type level = notation_entry * entry_level * entry_relative_level list * constr_entry_key list
(* first argument is InCustomEntry s for custom entries *)
type grammar_constr_prod_item =