package acgtk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Abstract Categorial Grammar development toolkit
Install
dune-project
Dependency
Authors
Maintainers
Sources
acgtk-1.5.3.tar.gz
sha256=2743321ae4cc97400856eb503a876cbcbd08435ebc750276399a97481d001d41
md5=04c1e14f98e2c8fd966ef7ef30b38323
doc/acgtkLib.acgData/AcgData/Reduction/Make/index.html
Module Reduction.MakeSource
This module implements the reduction from ACG signatures and lexicons to datalog programs
Parameters
module Sg :
Interface.Signature_sig
with type term = Logic.Lambda.Lambda.term
and type stype = Logic.Lambda.Lambda.stypeSignature
Source
val generate_and_add_rule :
abs_cst:(string * Logic.Lambda.Lambda.stype) ->
obj_princ_type:Logic.Lambda.Lambda.stype ->
obj_typing_env:
(Logic.Lambda.Lambda.term * Logic.Lambda.Lambda.stype)
UtilsLib.Utils.IntMap.t ->
DatalogLib.Datalog.Datalog.Program.program ->
abs_sig:Sg.t ->
obj_sig:Sg.t ->
DatalogLib.Datalog_AbstractSyntax.AbstractSyntax.Rule.rule
* DatalogLib.Datalog.Datalog.Program.programgenerate_and_add_rule ~abs_cst ~obj_princ_type ~obj_typing_env prog abs_sig obj_sig returns a pair (r,prog') where:
ris the generated ruleprog'isprogwhere the rulerhas been addedabs_cstis the abstract constant from the abstract signatureabs_sigthat triggers the rule generationobj_princ_typeis the principal type of the image by the lexicon ofabs_cstobj_typing_envis its typing environment. The latter maps the position of the object constants in the realisation ofabs_cstto a pair(t,ty)wheretis the object constant itself, andtythe type associated by the principal typing environment.progis the current datalog programabs_sigandobj_sigare the abstract signature and the object signature of some ACG.
Source
val edb_and_query :
obj_term:Logic.Lambda.Lambda.term ->
obj_type:Logic.Lambda.Lambda.stype ->
obj_typing_env:
(Logic.Lambda.Lambda.term * Logic.Lambda.Lambda.stype)
UtilsLib.Utils.IntMap.t ->
dist_type:Sg.stype ->
DatalogLib.Datalog.Datalog.Program.program ->
abs_sig:Sg.t ->
obj_sig:Sg.t ->
DatalogLib.Datalog_AbstractSyntax.AbstractSyntax.Predicate.predicate
* DatalogLib.Datalog.Datalog.Program.programedb_and_query ~obj_term ~obj_type ~obj_typing_env ~dist_type prog ~abs_sig ~obj_sig returns a pair (q,prog') where:
qis the predicate corresponding to the query generated by the object termobj_termto parseprog'isprogwhere the extensional database resulting from the reduction of the object termobj_termobj_typeis the principal type ofobj_termobj_typing_envis its typing environment. The latter maps the position of the object constants in the realisation ofabs_cstto a pair(t,ty)wheretis the object constant itself, andtythe type associated by the principal typing environment.dist_typeis the distinguished type of the ACGprogis the current datalog programabs_sigandobj_sigare the abstract signature and the object signature of some ACG.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page