package acgtk
Abstract Categorial Grammar development toolkit
Install
Dune Dependency
Authors
Maintainers
Sources
acgtk-1.5.3.tar.gz
sha256=2743321ae4cc97400856eb503a876cbcbd08435ebc750276399a97481d001d41
md5=04c1e14f98e2c8fd966ef7ef30b38323
doc/src/acgtkLib.acgData/interface.ml.html
Source file interface.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
(**************************************************************************) (* *) (* ACG development toolkit *) (* *) (* Copyright 2008-2021 INRIA *) (* *) (* More information on "http://acg.gforge.inria.fr/" *) (* License: CeCILL, see the LICENSE file or "http://www.cecill.info" *) (* Authors: see the AUTHORS file *) (* *) (* *) (* *) (* *) (* $Rev:: $: Revision of last commit *) (* $Author:: $: Author of last commit *) (* $Date:: $: Date of last commit *) (* *) (**************************************************************************) open Logic.Abstract_syntax open Logic.Lambda module type Signature_sig = sig exception Duplicate_type_definition exception Duplicate_term_definition exception Not_found type t type entry type term type stype type data = | Type of stype | Term of (term*stype) val empty : (string*Abstract_syntax.location) -> t val name : t -> (string*Abstract_syntax.location) val add_entry : Abstract_syntax.sig_entry -> t -> t (* REVIEW: Commented out because of still missing impl. *) (* val find_type : string -> t -> stype *) val find_term : string -> t -> term * stype val is_type : string -> t -> bool val is_constant : string -> t -> bool * Abstract_syntax.syntactic_behavior option (*val precedence : string -> t -> (float*Abstract_syntax.associativity) option *) val new_precedence : ?before:string -> string -> t -> (float * t) val type_to_string : stype -> t -> string val term_to_string : term -> t -> string val id_to_string : t -> int -> Abstract_syntax.syntactic_behavior*string val type_to_formatted_string : Format.formatter -> stype -> t -> unit val term_to_formatted_string : Format.formatter -> term -> t -> unit (* val type_to_string : stype -> t -> string*) val unfold_type_definition : int -> t -> Lambda.stype val unfold_term_definition : int -> t -> Lambda.term val expand_type : Lambda.stype -> t -> Lambda.stype val expand_term : Lambda.term -> t -> Lambda.term val add_warnings : Error.warning list -> t -> t (* val get_warnings : t -> Error.warning list *) val to_string : t -> string (* val term_to_string : term -> t -> string *) (* val raw_to_string : term -> string*) val convert_term : Abstract_syntax.term -> Abstract_syntax.type_def -> t -> term*stype val convert_type : Abstract_syntax.type_def -> t -> stype val type_of_constant : string -> t -> stype val typecheck : Abstract_syntax.term -> stype -> t -> term val fold : (entry -> 'a -> 'a) -> 'a -> t -> 'a val entry_to_data : entry -> data val get_binder_argument_functional_type : string -> t -> Abstract_syntax.abstraction option val is_declared : entry -> t -> string option val eta_long_form : term -> stype -> t -> term val unfold : term -> t -> term val is_2nd_order : t -> bool end module type Lexicon_sig = sig exception Duplicate_type_interpretation exception Duplicate_constant_interpretation type t module Signature:Signature_sig with type term=Lambda.term type signature = Signature.t type resume type dependency = | Signatures of (signature*signature) | Lexicons of (t*t) type data = | Signature of signature | Lexicon of t val get_dependencies : t -> dependency val empty : ?non_linear:bool -> abs:signature -> obj:signature -> (string*Abstract_syntax.location) -> t val is_linear : t -> bool val name : t -> (string*Abstract_syntax.location) val insert : Abstract_syntax.lex_entry -> t -> t val to_string : t -> string val interpret_type : Signature.stype -> t -> Signature.stype (* val interpret_type : Lambda.stype -> t -> Lambda.stype *) val interpret_term : Lambda.term -> t -> Lambda.term val interpret : Signature.term -> Signature.stype -> t -> (Signature.term*Signature.stype) val get_sig : t -> (signature*signature) val check : t -> unit val parse : Signature.term -> Signature.stype -> t -> resume val get_analysis : resume -> t -> Lambda.term option * resume val is_empty : resume -> bool val compose: t -> t -> (string*Abstract_syntax.location) -> t val program_to_buffer : t -> Buffer.t val program_to_log : Logs.src -> Logs.level -> t -> unit val query_to_buffer : Signature.term -> Signature.stype -> t -> Buffer.t val query_to_log : Logs.src -> Logs.level -> Signature.term -> Signature.stype -> t -> unit val update : t -> (string -> data) -> t end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>