Make.Disambiguationtype state = Disambiguation_state.statemodule Entry : sig ... endval add_lf_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_meta_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_parameter_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_substitution_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_context_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_contextual_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_computation_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_free_lf_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_free_meta_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_free_parameter_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_free_substitution_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_free_context_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_free_computation_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval with_bound_lf_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_meta_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_parameter_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_substitution_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_context_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_contextual_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_computation_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_pattern_meta_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_pattern_parameter_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_pattern_substitution_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval with_bound_pattern_context_variable :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aval add_lf_type_constant :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
?arity:Support.Int.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_lf_term_constant :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
?arity:Support.Int.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_schema_constant :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_inductive_computation_type_constant :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
?arity:Support.Int.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_stratified_computation_type_constant :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
?arity:Support.Int.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_coinductive_computation_type_constant :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
?arity:Support.Int.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_abbreviation_computation_type_constant :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
?arity:Support.Int.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_computation_term_constructor :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
?arity:Support.Int.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_computation_term_destructor :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_program_constant :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
?arity:Support.Int.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval add_module :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Identifier.t ->
(state -> 'a) ->
'aexception Unbound_identifier of Beluga_syntax.Syncom.Identifier.texception Unbound_qualified_identifier of Beluga_syntax.Syncom.Qualified_identifier.texception Unbound_namespace of Beluga_syntax.Syncom.Qualified_identifier.tval lookup_toplevel : state -> Beluga_syntax.Syncom.Identifier.t -> Entry.tval lookup : state -> Beluga_syntax.Syncom.Qualified_identifier.t -> Entry.ttype maximum_lookup_result =
Make_disambiguation(Disambiguation_state).maximum_lookup_result =
| Unbound of {segments : Beluga_syntax.Syncom.Identifier.t Support.List1.t;}| Partially_bound of {leading_segments : Beluga_syntax.Syncom.Identifier.t Support.List.t;segment : Beluga_syntax.Syncom.Identifier.t;entry : Entry.t;trailing_segments : Beluga_syntax.Syncom.Identifier.t Support.List1.t;}| Bound of {entry : Entry.t;}val maximum_lookup :
state ->
Beluga_syntax.Syncom.Identifier.t Support.List1.t ->
maximum_lookup_resultval actual_binding_exn :
Beluga_syntax.Syncom.Qualified_identifier.t ->
Entry.t ->
exnval open_module :
state ->
Beluga_syntax.Syncom.Qualified_identifier.t ->
Stdlib.Unit.tval get_default_associativity : state -> Beluga_syntax.Syncom.Associativity.tval set_default_associativity :
state ->
Beluga_syntax.Syncom.Associativity.t ->
Stdlib.Unit.tval get_default_precedence : state -> Support.Int.tval set_default_precedence : state -> Support.Int.t -> Stdlib.Unit.tval add_prefix_notation :
state ->
?precedence:Support.Int.t ->
Beluga_syntax.Syncom.Qualified_identifier.t ->
Stdlib.Unit.tval add_infix_notation :
state ->
?precedence:Support.Int.t ->
?associativity:Beluga_syntax.Syncom.Associativity.t ->
Beluga_syntax.Syncom.Qualified_identifier.t ->
Stdlib.Unit.tval add_postfix_notation :
state ->
?precedence:Support.Int.t ->
Beluga_syntax.Syncom.Qualified_identifier.t ->
Stdlib.Unit.tval add_postponed_prefix_notation :
state ->
?precedence:Support.Int.t ->
Beluga_syntax.Syncom.Qualified_identifier.t ->
Stdlib.Unit.tval add_postponed_infix_notation :
state ->
?precedence:Support.Int.t ->
?associativity:Beluga_syntax.Syncom.Associativity.t ->
Beluga_syntax.Syncom.Qualified_identifier.t ->
Stdlib.Unit.tval add_postponed_postfix_notation :
state ->
?precedence:Support.Int.t ->
Beluga_syntax.Syncom.Qualified_identifier.t ->
Stdlib.Unit.tval apply_postponed_fixity_pragmas : state -> unitval lookup_operator :
state ->
Beluga_syntax.Syncom.Qualified_identifier.t ->
Beluga_syntax.Syncom.Operator.t Support.Option.tval add_module_abbreviation :
state ->
?location:Beluga_syntax.Syncom.Location.t ->
Beluga_syntax.Syncom.Qualified_identifier.t ->
Beluga_syntax.Syncom.Identifier.t ->
Stdlib.Unit.tval disambiguate_lf_kind : state -> Synprs.lf_object -> Synext.lf_kindval disambiguate_lf_typ : state -> Synprs.lf_object -> Synext.lf_typval disambiguate_lf_term : state -> Synprs.lf_object -> Synext.lf_termval disambiguate_clf_typ : state -> Synprs.clf_object -> Synext.clf_typval disambiguate_clf_term : state -> Synprs.clf_object -> Synext.clf_termval disambiguate_clf_substitution :
state ->
Synprs.clf_context_object ->
Synext.clf_substitutionval with_disambiguated_clf_context :
state ->
Synprs.clf_context_object ->
(state -> Synext.clf_context -> 'a) ->
'aval disambiguate_clf_term_pattern :
state ->
Synprs.clf_object ->
Synext.clf_term_patternval disambiguate_clf_substitution_pattern :
state ->
Synprs.clf_context_object ->
Synext.clf_substitution_patternval with_disambiguated_clf_context_pattern :
state ->
Synprs.clf_context_object ->
(state -> Synext.clf_context_pattern -> 'a) ->
'aval disambiguate_clf_context_pattern :
state ->
Synprs.clf_context_object ->
Synext.clf_context_patternval disambiguate_meta_typ : state -> Synprs.meta_thing -> Synext.meta_typval disambiguate_meta_object : state -> Synprs.meta_thing -> Synext.meta_objectval disambiguate_meta_pattern :
state ->
Synprs.meta_thing ->
Beluga_syntax.Synext.Meta.Pattern.tval disambiguate_schema : state -> Synprs.schema_object -> Synext.schemaval with_disambiguated_meta_context :
state ->
Synprs.meta_context_object ->
(state -> Synext.meta_context -> 'a) ->
'aval with_disambiguated_meta_context_pattern :
state ->
Synprs.meta_context_object ->
(state -> Synext.meta_context -> 'a) ->
'aval disambiguate_comp_kind :
state ->
Synprs.comp_sort_object ->
Synext.comp_kindval disambiguate_comp_typ : state -> Synprs.comp_sort_object -> Synext.comp_typval disambiguate_comp_expression :
state ->
Synprs.comp_expression_object ->
Synext.comp_expressionval disambiguate_comp_pattern :
state ->
Synprs.comp_pattern_object ->
Synext.comp_patternval disambiguate_comp_copattern :
state ->
Synprs.comp_copattern_object Support.List1.t ->
Synext.comp_copatternval with_disambiguated_comp_context :
state ->
Synprs.comp_context_object ->
(state -> Synext.comp_context -> 'a) ->
'aval disambiguate_harpoon_proof :
state ->
Synprs.harpoon_proof ->
Synext.harpoon_proofval with_disambiguated_harpoon_command :
state ->
Synprs.harpoon_command ->
(state -> Synext.harpoon_command -> 'a) ->
'aval disambiguate_harpoon_directive :
state ->
Synprs.harpoon_directive ->
Synext.harpoon_directiveval disambiguate_harpoon_split_branch :
state ->
Synprs.harpoon_split_branch ->
Synext.harpoon_split_branchval disambiguate_harpoon_suffices_branch :
state ->
Synprs.harpoon_suffices_branch ->
Synext.harpoon_suffices_branchval disambiguate_harpoon_hypothetical :
state ->
Synprs.harpoon_hypothetical ->
Synext.harpoon_hypotheticalval disambiguate_harpoon_repl_command :
state ->
Synprs.harpoon_repl_command ->
Synext.harpoon_repl_commandval traverse_list :
state ->
(state -> 'a -> 'b) ->
'a Support.List.t ->
'b Support.List.tval traverse_list1 :
state ->
(state -> 'a -> 'b) ->
'a Support.List1.t ->
'b Support.List1.tval traverse_list2 :
state ->
(state -> 'a -> 'b) ->
'a Support.List2.t ->
'b Support.List2.tval iter_list :
state ->
(state -> 'a -> Stdlib.Unit.t) ->
'a Support.List.t ->
Stdlib.Unit.tval iter_list1 :
state ->
(state -> 'a -> Stdlib.Unit.t) ->
'a Support.List1.t ->
Stdlib.Unit.tval iter_list2 :
state ->
(state -> 'a -> Stdlib.Unit.t) ->
'a Support.List2.t ->
Stdlib.Unit.tval traverse_reverse_list :
state ->
(state -> 'a -> 'b) ->
'a Support.List.t ->
'b Support.List.tval traverse_reverse_list1 :
state ->
(state -> 'a -> 'b) ->
'a Support.List1.t ->
'b Support.List1.tval traverse_reverse_list2 :
state ->
(state -> 'a -> 'b) ->
'a Support.List2.t ->
'b Support.List2.tval iter_rev_list :
state ->
(state -> 'a -> Stdlib.Unit.t) ->
'a Support.List.t ->
Stdlib.Unit.tval iter_rev_list1 :
state ->
(state -> 'a -> Stdlib.Unit.t) ->
'a Support.List1.t ->
Stdlib.Unit.tval iter_rev_list2 :
state ->
(state -> 'a -> Stdlib.Unit.t) ->
'a Support.List2.t ->
Stdlib.Unit.tval traverse_option :
state ->
(state -> 'a -> 'b) ->
'a Support.Option.t ->
'b Support.Option.tval iter_option :
state ->
(state -> 'a -> Stdlib.Unit.t) ->
'a Support.Option.t ->
Stdlib.Unit.tval seq_list : state -> (state -> 'a) Support.List.t -> 'a Support.List.tval seq_list1 : state -> (state -> 'a) Support.List1.t -> 'a Support.List1.tval iter_seq :
state ->
(state -> Stdlib.Unit.t) Support.List.t ->
Stdlib.Unit.tval disambiguate_pragma :
state ->
Synprs.signature_pragma ->
Synext.signature_pragmaval disambiguate_global_pragma :
state ->
Synprs.signature_global_pragma ->
Synext.signature_global_pragmaval disambiguate_totality_declaration :
state ->
Synprs.signature_totality_declaration ->
Synext.signature_totality_declarationval disambiguate_numeric_totality_order :
state ->
Support.Int.t Synprs.signature_totality_order ->
Support.Int.t Synext.signature_totality_orderval disambiguate_named_totality_order :
state ->
Beluga_syntax.Synext.Identifier.t Synprs.signature_totality_order ->
Beluga_syntax.Synext.Identifier.t Synext.signature_totality_orderval disambiguate_declaration :
state ->
Synprs.signature_declaration ->
Synext.signature_declarationval disambiguate_signature_file :
state ->
Synprs.signature_file ->
Synext.signature_fileval disambiguate_signature : state -> Synprs.signature -> Synext.signature