- status,!rule_id @ pp_id
- | Interpretation (loc, dsc, l2, l3) ->
- let status,interp_id =
- Interpretations.add_interpretation status dsc l2 l3
- in
- 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 -> ()
- | 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 ();
- CicNotationParser.push ()
-;;
+ status
+ | Interpretation (loc, dsc, l2, l3) ->
+ Interpretations.add_interpretation status dsc l2 l3
+ | st -> status