diff options
| author | Hugo Herbelin | 2020-02-10 17:27:21 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2020-02-15 22:23:08 +0100 |
| commit | 45ced1c1af3dbe7f81c8b928aeb76ebadfe709ea (patch) | |
| tree | 8159a3c46ba0d7335b9d2b9e51a7981c3cd4457a /parsing/notgram_ops.ml | |
| parent | 7985e4f9422216566d7d4675f8c562da9b989d0f (diff) | |
Reorganize type "production_level" along a more intuitive structure.
NextLevel = at next level
NumLevel n = at level n
DefaultLevel = <no mention of level>
Diffstat (limited to 'parsing/notgram_ops.ml')
| -rw-r--r-- | parsing/notgram_ops.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/parsing/notgram_ops.ml b/parsing/notgram_ops.ml index 009dafdb13..a5ade43295 100644 --- a/parsing/notgram_ops.ml +++ b/parsing/notgram_ops.ml @@ -48,7 +48,8 @@ let production_position_eq pp1 pp2 = match (pp1,pp2) with let production_level_eq l1 l2 = match (l1,l2) with | NextLevel, NextLevel -> true | NumLevel n1, NumLevel n2 -> Int.equal n1 n2 -| (NextLevel | NumLevel _), _ -> false +| DefaultLevel, DefaultLevel -> true +| (NextLevel | NumLevel _ | DefaultLevel), _ -> false let constr_entry_key_eq eq v1 v2 = match v1, v2 with | ETIdent, ETIdent -> true |
