package libsail
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Libsail.TargetSource
Infrastructure for registering Sail targets/backends
Target type and accessor functions
Source
val run_pre_descatter_hook :
target ->
Type_check.tannot Ast_defs.ast ->
Type_check.Env.t ->
unitSource
val run_pre_rewrites_hook :
target ->
Type_check.tannot Ast_defs.ast ->
Effects.side_effect_info ->
Type_check.Env.t ->
unitSource
val action :
target ->
string ->
string option ->
Type_check.tannot Ast_defs.ast ->
Effects.side_effect_info ->
Type_check.Env.t ->
unitTarget registration
Source
val register :
name:string ->
?flag:string ->
?description:string ->
?options:(Arg.key * Arg.spec * Arg.doc) list ->
?pre_parse_hook:(unit -> unit) ->
?pre_descatter_hook:
(Type_check.tannot Ast_defs.ast -> Type_check.Env.t -> unit) ->
?pre_rewrites_hook:
(Type_check.tannot Ast_defs.ast ->
Effects.side_effect_info ->
Type_check.Env.t ->
unit) ->
?rewrites:(string * Rewrites.rewriter_arg list) list ->
?asserts_termination:bool ->
(string ->
string option ->
Type_check.tannot Ast_defs.ast ->
Effects.side_effect_info ->
Type_check.Env.t ->
unit) ->
targetUsed for plugins to register custom Sail targets/backends.
register_target ~name:"foo" action will create an option -foo, that will run the provided action on the Sail abstract syntax tree after performing common frontend processing.
The various optional arguments can be used to further control the behavior of the target:
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page