diff options
| author | Hugo Herbelin | 2018-06-29 12:13:00 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2018-07-29 02:40:22 +0200 |
| commit | a90aa1a2d7f0fd12621e744a67cc8c2abd24f9f8 (patch) | |
| tree | fdbfbc726e8652cf7524685cb1d24b5f5df71464 /parsing/pcoq.mli | |
| parent | bc480bb7068b0ffeeb8ad5cb90ee73fabc068d5f (diff) | |
Supporting locality flag for custom entries + compatibility with modules.
Also prevents to use an entry name already defined.
Diffstat (limited to 'parsing/pcoq.mli')
| -rw-r--r-- | parsing/pcoq.mli | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/parsing/pcoq.mli b/parsing/pcoq.mli index 9711cd0461..b2e1259646 100644 --- a/parsing/pcoq.mli +++ b/parsing/pcoq.mli @@ -273,7 +273,8 @@ type any_entry = AnyEntry : 'a Entry.t -> any_entry val register_grammars_by_name : string -> any_entry list -> unit val find_grammars_by_name : string -> any_entry list -(** Create a custom entry of some name *) +(** Create a custom entry of some name; boolean is [true] if local *) -val create_custom_entries : string -> unit -val find_custom_entries : string -> (Constrexpr.constr_expr Gram.entry * Constrexpr.cases_pattern_expr Gram.entry) +val create_custom_entry : bool -> string -> unit +val find_custom_entry : string -> (Constrexpr.constr_expr Gram.entry * Constrexpr.cases_pattern_expr Gram.entry) +val locality_of_custom_entry : string -> bool |
