package archetype
Archetype language compiler
Install
Dune Dependency
Authors
Maintainers
Sources
1.4.3.tar.gz
md5=056be0abf0b3855e73a7a63264ccfa86
sha512=82a146f1390808f5409ee97b31c4faad39e87eefc77f29f00e2a17fc267394e6d53e8c790e9cdde749d5acc402c53f56f0b595c40285b87d0998fbddbefdaa5d
doc/archetype/Archetype/Ast/index.html
Module Archetype.Ast
Source
Source
val pp_namespace :
Ppx_deriving_runtime.Format.formatter ->
namespace ->
Ppx_deriving_runtime.unit
Source
val pp_longident :
Ppx_deriving_runtime.Format.formatter ->
longident ->
Ppx_deriving_runtime.unit
Source
val pp_container :
Ppx_deriving_runtime.Format.formatter ->
container ->
Ppx_deriving_runtime.unit
Source
val pp_currency :
Ppx_deriving_runtime.Format.formatter ->
currency ->
Ppx_deriving_runtime.unit
Source
type ptyp =
| Tnamed of int
| Tasset of longident
| Trecord of longident
| Tevent of longident
| Tenum of longident
| Tbuiltin of vtyp
| Tcontainer of type_ * container
| Tset of type_
| Tlist of type_
| Tmap of type_ * type_
| Tbig_map of type_ * type_
| Titerable_big_map of type_ * type_
| Tor of type_ * type_
| Tlambda of type_ * type_
| Ttuple of type_ list
| Toption of type_
| Toperation
| Tcontract of type_
| Tticket of type_
| Tsapling_state of int
| Tsapling_transaction of int
Source
val pp_logical_operator :
Ppx_deriving_runtime.Format.formatter ->
logical_operator ->
Ppx_deriving_runtime.unit
Source
val pp_comparison_operator :
Ppx_deriving_runtime.Format.formatter ->
comparison_operator ->
Ppx_deriving_runtime.unit
Source
val pp_assignment_operator :
Ppx_deriving_runtime.Format.formatter ->
assignment_operator ->
Ppx_deriving_runtime.unit
Source
val pp_arithmetic_operator :
Ppx_deriving_runtime.Format.formatter ->
arithmetic_operator ->
Ppx_deriving_runtime.unit
Source
val pp_unary_arithmetic_operator :
Ppx_deriving_runtime.Format.formatter ->
unary_arithmetic_operator ->
Ppx_deriving_runtime.unit
Source
type operator = [
| `Logical of logical_operator
| `Cmp of comparison_operator
| `Arith of arithmetic_operator
| `Unary of unary_arithmetic_operator
| `Assign of assignment_operator
]
Source
val pp_operator :
Ppx_deriving_runtime.Format.formatter ->
operator ->
Ppx_deriving_runtime.unit
Source
type const =
| Cstate
| Cnow
| Ctransferred
| Ccaller
| Cfail
| Cbalance
| Csource
| Cselfaddress
| Cselfchainid
| Coperations
| Cmetadata
| Clevel
| Cadd
| Cput
| Caddupdate
| Cceil
| Cclear
| Cconcat
| Ccontains
| Ccount
| Cfloor
| Cget
| Cgetopt
| Cisnone
| Cissome
| Cinttonat
| Clength
| Cmax
| Cmin
| Cnth
| Cpack
| Cremove
| Cremoveall
| Cremoveif
| Cselect
| Cslice
| Csort
| Csum
| Cunpack
| Cupdate
| Cupdateall
| Cmakeoperation
| Cmakeevent
| Cnattostring
| Cbytestonat
| Cnattobytes
| Cbytestoint
| Cinttobytes
| Cexec
| Capply
| Cinttodate
| CmutezToNat
| Csetdelegate
| Ckeyhashtocontract
| Csubnat
| Csubmutez
| Cgreedyand
| Cgreedyor
| CmakeAsset
| CtoContainer
| CputRemove
| CgetEntrypoint
| CrequireEntrypoint
| CcallView
| CimportCallView
| CselfCallView
| Csimplifyrational
| Cgetnumerator
| Cgetdenominator
| Cglobalconstant
| Cexphorner
| Csadd
| Csremove
| Csupdate
| Cscontains
| Cslength
| Chead
| Ctail
| Cabs
| Cprepend
| Creverse
| Cmput
| Cmremove
| Cmupdate
| Cmget
| Cmgetopt
| Cmcontains
| Cmlength
| Cblake2b
| Csha256
| Csha512
| Csha3
| Ckeccak
| Cchecksignature
| Ckeytokeyhash
| Ccontracttoaddress
| Caddresstocontract
| Ckeytoaddress
| Cisimplicitaddress
| Ctotalvotingpower
| Cvotingpower
| Cminblocktime
| Ccreateticket
| Creadticket
| Csplitticket
| Cjointickets
| Csapling_empty_state
| Csapling_verify_update
| Cpairing_check
| Copen_chest
| Cemit
Source
type 'node struct_poly = {
node : 'node;
type_ : type_ option;
label : Ident.ident option;
loc : Location.t;
}
Source
val pp_struct_poly :
'node. (Ppx_deriving_runtime.Format.formatter ->
'node ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'node struct_poly ->
Ppx_deriving_runtime.unit
Source
val show_struct_poly :
'node. (Ppx_deriving_runtime.Format.formatter ->
'node ->
Ppx_deriving_runtime.unit) ->
'node struct_poly ->
Ppx_deriving_runtime.string
Source
val pp_qualid_node :
Ppx_deriving_runtime.Format.formatter ->
qualid_node ->
Ppx_deriving_runtime.unit
Source
val pp_sexpr_node :
Ppx_deriving_runtime.Format.formatter ->
sexpr_node ->
Ppx_deriving_runtime.unit
Source
and bval_node =
| BVint of Core.big_int
| BVnat of Core.big_int
| BVbool of bool
| BVrational of Core.big_int * Core.big_int
| BVdate of Core.date
| BVstring of string
| BVcurrency of currency * Core.big_int
| BVaddress of string
| BVduration of Core.duration
| BVbytes of string
| BVunit
| BVbls12_381_num_fr of Core.big_int
| BVbls12_381_byt_fr of string
| BVbls12_381_g1 of string
| BVbls12_381_g2 of string
Source
val pp_bval_node :
Ppx_deriving_runtime.Format.formatter ->
bval_node ->
Ppx_deriving_runtime.unit
Source
val pp_pattern :
Ppx_deriving_runtime.Format.formatter ->
pattern ->
Ppx_deriving_runtime.unit
Source
val pp_pattern_node :
Ppx_deriving_runtime.Format.formatter ->
pattern_node ->
Ppx_deriving_runtime.unit
Source
val pp_call_kind :
Ppx_deriving_runtime.Format.formatter ->
call_kind ->
Ppx_deriving_runtime.unit
Source
val pp_michelson_struct :
Ppx_deriving_runtime.Format.formatter ->
michelson_struct ->
Ppx_deriving_runtime.unit
Source
and pterm_node =
| Pif of pterm * pterm * pterm
| Pmatchwith of pterm * (pattern * pterm) list
| Pmatchoption of pterm * lident * pterm * pterm
| Pmatchor of pterm * lident * pterm * lident * pterm
| Pmatchlist of pterm * lident * lident * pterm * pterm
| Pfold of pterm * lident * pterm
| Pmap of pterm * lident * pterm
| Pcall of pterm option * call_kind * type_ list * pterm_arg list
| Plogical of logical_operator * pterm * pterm
| Pnot of pterm
| Pmulticomp of pterm * (comparison_operator * pterm) list
| Pcomp of comparison_operator * pterm * pterm
| Parith of arithmetic_operator * pterm * pterm
| Puarith of unary_arithmetic_operator * pterm
| Precord of pterm list
| Precupdate of pterm * (lident * pterm) list
| Pletin of lident * pterm * type_ option * pterm * pterm option
| Pdeclvar of lident * type_ option * pterm * bool
| Pvar of longident
| Parray of pterm list
| Plit of bval
| Pdot of pterm * lident
| Pquestiondot of pterm * lident
| Pconst of const
| Ptuple of pterm list
| Ptupleaccess of pterm * Core.big_int
| Pnone
| Psome of pterm
| Pleft of type_ * pterm
| Pright of type_ * pterm
| Plambda of type_ * lident * type_ * pterm
| Plambda_michelson of type_ * type_ * Michelson.obj_micheline
| Pcast of type_ * type_ * pterm
| Pself of lident
| Pternary of pterm * pterm * pterm
| Pcreatecontract of pterm * pterm * create_contract_type
| Ptz_expr of string
| Pmicheline_expr of type_ * Michelson.obj_micheline * pterm list
Source
and create_contract_type =
| CCTz of michelson_struct * pterm
| CCArl of Ident.ident * (Ident.ident * pterm) list
Source
val pp_pterm_node :
Ppx_deriving_runtime.Format.formatter ->
pterm_node ->
Ppx_deriving_runtime.unit
Source
val pp_pterm_arg :
Ppx_deriving_runtime.Format.formatter ->
pterm_arg ->
Ppx_deriving_runtime.unit
Source
val pp_create_contract_type :
Ppx_deriving_runtime.Format.formatter ->
create_contract_type ->
Ppx_deriving_runtime.unit
Source
and instruction_node =
| Iif of pterm * instruction * instruction
| Ifor of for_ident * pterm * instruction
| Iiter of lident * pterm * pterm * instruction
| Iwhile of pterm * instruction
| Iletin of lident * pterm * instruction
| Ideclvar of lident * pterm * bool
| Ideclvaropt of lident * pterm * pterm option * bool
| Iseq of instruction list
| Imatchwith of pterm * (pattern * instruction) list
| Imatchoption of pterm * lident * instruction * instruction
| Imatchor of pterm * lident * instruction * lident * instruction
| Imatchlist of pterm * lident * lident * instruction * instruction
| Iassign of assignment_operator * type_ * lvalue * pterm * pterm option
| Irequire of bool * pterm * pterm
| Itransfer of transfer_t
| Iemit of longident * pterm
| Icall of pterm option * call_kind * pterm_arg list
| Ireturn of pterm
| Ifail of pterm
| Ifailsome of pterm
| Idetach of lident * detach_kind * type_ * pterm
| Imicheline of Michelson.obj_micheline
Source
val pp_instruction :
Ppx_deriving_runtime.Format.formatter ->
instruction ->
Ppx_deriving_runtime.unit
Source
val pp_transfer_t :
Ppx_deriving_runtime.Format.formatter ->
transfer_t ->
Ppx_deriving_runtime.unit
Source
val pp_detach_kind :
Ppx_deriving_runtime.Format.formatter ->
detach_kind ->
Ppx_deriving_runtime.unit
Source
val pp_instruction_node :
Ppx_deriving_runtime.Format.formatter ->
instruction_node ->
Ppx_deriving_runtime.unit
Source
val pp_for_ident :
Ppx_deriving_runtime.Format.formatter ->
for_ident ->
Ppx_deriving_runtime.unit
Source
type 'a decl_gen = {
name : 'a;
typ : type_ option;
default : pterm option;
shadow : bool;
loc : Location.t;
}
Source
val pp_decl_gen :
'a. (Ppx_deriving_runtime.Format.formatter ->
'a ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'a decl_gen ->
Ppx_deriving_runtime.unit
Source
val show_decl_gen :
'a. (Ppx_deriving_runtime.Format.formatter ->
'a ->
Ppx_deriving_runtime.unit) ->
'a decl_gen ->
Ppx_deriving_runtime.string
Source
val pp_label_term :
Ppx_deriving_runtime.Format.formatter ->
label_term ->
Ppx_deriving_runtime.unit
Source
val pp_variable_kind :
Ppx_deriving_runtime.Format.formatter ->
variable_kind ->
Ppx_deriving_runtime.unit
Source
val pp_variable :
Ppx_deriving_runtime.Format.formatter ->
variable ->
Ppx_deriving_runtime.unit
Source
val pp_parameter :
Ppx_deriving_runtime.Format.formatter ->
parameter ->
Ppx_deriving_runtime.unit
Source
val pp_entry_description :
Ppx_deriving_runtime.Format.formatter ->
entry_description ->
Ppx_deriving_runtime.unit
Source
val pp_security_role :
Ppx_deriving_runtime.Format.formatter ->
security_role ->
Ppx_deriving_runtime.unit
Source
val pp_security_entry :
Ppx_deriving_runtime.Format.formatter ->
security_entry ->
Ppx_deriving_runtime.unit
Source
val pp_view_visibility :
Ppx_deriving_runtime.Format.formatter ->
view_visibility ->
Ppx_deriving_runtime.unit
Source
val pp_fun_kind :
Ppx_deriving_runtime.Format.formatter ->
fun_kind ->
Ppx_deriving_runtime.unit
Source
val pp_returned_fun_type :
Ppx_deriving_runtime.Format.formatter ->
returned_fun_type ->
Ppx_deriving_runtime.unit
Source
type function_ = {
name : longident;
kind : fun_kind;
args : lident decl_gen list;
body : instruction;
return : returned_fun_type;
side_effect : bool;
storage_usage : bool;
loc : Location.t;
}
Source
val pp_function_ :
Ppx_deriving_runtime.Format.formatter ->
function_ ->
Ppx_deriving_runtime.unit
Source
val pp_rexpr_node :
Ppx_deriving_runtime.Format.formatter ->
rexpr_node ->
Ppx_deriving_runtime.unit
Source
val pp_transition :
Ppx_deriving_runtime.Format.formatter ->
transition ->
Ppx_deriving_runtime.unit
Source
val pp_tr_kind :
Ppx_deriving_runtime.Format.formatter ->
tr_kind ->
Ppx_deriving_runtime.unit
Source
type transaction = {
kind : tr_kind;
name : lident;
args : lident decl_gen list;
sourcedby : (rexpr * pterm option) option;
calledby : (rexpr * pterm option) option;
state_is : (lident * pterm option) option;
accept_transfer : bool * pterm option;
constants : label_term list option;
require : label_term list option;
failif : label_term list option;
transition : transition option;
functions : function_ list;
effect : instruction option;
loc : Location.t;
}
Source
val pp_transaction :
Ppx_deriving_runtime.Format.formatter ->
transaction ->
Ppx_deriving_runtime.unit
Source
type enum_item_struct = {
name : lident;
initial : bool;
invariants : label_term list;
args : ptyp list;
loc : Location.t;
}
Source
val pp_enum_item_struct :
Ppx_deriving_runtime.Format.formatter ->
enum_item_struct ->
Ppx_deriving_runtime.unit
Source
val pp_enum_kind :
Ppx_deriving_runtime.Format.formatter ->
enum_kind ->
Ppx_deriving_runtime.unit
Source
val pp_map_kind :
Ppx_deriving_runtime.Format.formatter ->
map_kind ->
Ppx_deriving_runtime.unit
Source
type asset = {
name : longident;
fields : lident decl_gen list;
keys : lident list;
sort : lident list;
map_kind : map_kind;
init : pterm list list;
specs : label_term list;
loc : Location.t;
}
Source
val pp_position :
Ppx_deriving_runtime.Format.formatter ->
position ->
Ppx_deriving_runtime.unit
Source
val pp_metadata_kind :
Ppx_deriving_runtime.Format.formatter ->
metadata_kind ->
Ppx_deriving_runtime.unit
Source
val pp_import_kind_node :
Ppx_deriving_runtime.Format.formatter ->
import_kind_node ->
Ppx_deriving_runtime.unit
Source
type ast = {
name : lident;
parameters : parameter list;
metadata : metadata_kind option;
decls : decl_ list;
funs : fun_ list;
loc : Location.t;
}
Source
val mk_function_struct :
?args:lident decl_gen list ->
?loc:Location.t ->
longident ->
fun_kind ->
instruction ->
returned_fun_type ->
bool ->
bool ->
function_
Source
val mk_transition :
?trs:(lident * pterm option * instruction option) list ->
sexpr ->
transition
Source
val mk_transaction_struct :
?args:lident decl_gen list ->
?sourcedby:(rexpr * pterm option) ->
?calledby:(rexpr * pterm option) ->
?state_is:(lident * pterm option) ->
?accept_transfer:(bool * pterm option) ->
?constants:label_term list ->
?require:label_term list ->
?failif:label_term list ->
?transition:transition ->
?functions:function_ list ->
?effect:instruction ->
?loc:Location.t ->
tr_kind ->
lident ->
transaction
Source
val mk_enum_item :
?initial:bool ->
?args:ptyp list ->
?invariants:label_term list ->
?loc:Location.t ->
lident ->
enum_item_struct
Source
val mk_decl :
?typ:type_ ->
?default:pterm ->
?shadow:bool ->
?loc:Location.t ->
'a ->
'a decl_gen
Source
val mk_model :
?parameters:parameter list ->
?metadata:metadata_kind ->
?decls:decl_ list ->
?funs:fun_ list ->
?loc:Location.t ->
lident ->
ast
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>