- status,[InterpretationId interp_id]
- | st -> status,[]
-
-let remove_notation = function
- | RuleId id ->
- let item =
- try
- Hashtbl.find !rule_ids_to_items id
- with Not_found -> assert false in
- RefCounter.decr ~delete_cb:(fun _ -> CicNotationParser.delete id)
- !parser_ref_counter item
- | PrettyPrinterId id -> TermContentPres.remove_pretty_printer id
- | InterpretationId id -> ()
-
-let history = ref [];;
-
-let push () =
- history := (!parser_ref_counter,!rule_ids_to_items) :: !history;
- parser_ref_counter := initial_parser_ref_counter ();
- rule_ids_to_items := initial_rule_ids_to_items ();
- TermContentPres.push ();
- CicNotationParser.push ()
-;;
+ status
+ | Interpretation (loc, dsc, l2, l3) ->
+ Interpretations.add_interpretation status dsc l2 l3
+ | st -> status