package archetype
Module Archetype.ParseTreeSource
Source
and type_r = | Tref of lident| Trefscope of lident option * lident| Tcontainer of type_t * container| Ttuple of type_t list| Toption of type_t| Tset of type_t| Tlist of type_t| Tmap of type_t * type_t| Tbig_map of type_t * type_t| Titerable_big_map of type_t * type_t| Tor of type_t * type_t| Tlambda of type_t * type_t| Tcontract of type_t| Tticket of type_t| Tsapling_state of Core.big_int| Tsapling_transaction of Core.big_int
Source
and operator = | Logical of logical_operator| Cmp of comparison_operator| Arith of arithmetic_operator| Unary of unary_operator
Source
val scope_import_of_yojson :
Yojson.Safe.t ->
scope_import Ppx_deriving_yojson_runtime.error_orSource
val logical_operator_of_yojson :
Yojson.Safe.t ->
logical_operator Ppx_deriving_yojson_runtime.error_orSource
val comparison_operator_of_yojson :
Yojson.Safe.t ->
comparison_operator Ppx_deriving_yojson_runtime.error_orSource
val arithmetic_operator_of_yojson :
Yojson.Safe.t ->
arithmetic_operator Ppx_deriving_yojson_runtime.error_orSource
val unary_operator_of_yojson :
Yojson.Safe.t ->
unary_operator Ppx_deriving_yojson_runtime.error_orSource
val assignment_operator_of_yojson :
Yojson.Safe.t ->
assignment_operator Ppx_deriving_yojson_runtime.error_orSource
val pp_scope_import :
Ppx_deriving_runtime.Format.formatter ->
scope_import ->
Ppx_deriving_runtime.unitSource
val pp_container :
Ppx_deriving_runtime.Format.formatter ->
container ->
Ppx_deriving_runtime.unitSource
val pp_logical_operator :
Ppx_deriving_runtime.Format.formatter ->
logical_operator ->
Ppx_deriving_runtime.unitSource
val pp_comparison_operator :
Ppx_deriving_runtime.Format.formatter ->
comparison_operator ->
Ppx_deriving_runtime.unitSource
val pp_arithmetic_operator :
Ppx_deriving_runtime.Format.formatter ->
arithmetic_operator ->
Ppx_deriving_runtime.unitSource
val pp_unary_operator :
Ppx_deriving_runtime.Format.formatter ->
unary_operator ->
Ppx_deriving_runtime.unitSource
val pp_assignment_operator :
Ppx_deriving_runtime.Format.formatter ->
assignment_operator ->
Ppx_deriving_runtime.unitSource
val pp_quantifier :
Ppx_deriving_runtime.Format.formatter ->
quantifier ->
Ppx_deriving_runtime.unitSource
val pp_operator :
Ppx_deriving_runtime.Format.formatter ->
operator ->
Ppx_deriving_runtime.unitSource
and expr_unloc = | Eterm of scope_import * var_vset option * var_label option * lident| Eliteral of literal| Earray of scope_import * expr list| Erecord of scope_import * record_item list| Etuple of expr list| Edot of expr * lident| Equestiondot of expr * lident| Esqapp of expr * expr| Emulticomp of expr * (comparison_operator Location.loced * expr) list| Eapp of function_ * expr list| Eappt of function_ * type_t list * expr list| Emethod of expr * lident * expr list| Etransfer of transfer_t| Edorequire of expr * expr| Edofailif of expr * expr| Efail of expr| Efailsome of expr| Eassign of assignment_operator * expr * expr| Eassignopt of expr * expr * expr| Eif of expr * expr * expr option| Efor of lident option * for_ident * expr * expr| Eiter of lident option * lident * expr option * expr * expr| Ewhile of lident option * expr * expr| Eseq of expr * expr| Eletin of lident * type_t option * expr * expr * expr option| Evar of lident * type_t option * expr * bool| Evaropt of lident * type_t option * expr * expr option * bool| Ematchwith of expr * branch list| Efold of expr * lident * expr| Emap of expr * lident * expr| Erecupdate of expr * (lident * expr) list| Equantifier of quantifier * lident * quantifier_kind * expr| Eassert of lident| Elabel of lident| Ereturn of expr| Eoption of option_| Eor of or_| Elambda of type_t option * lident * type_t option * expr| Eentrypoint of type_t * expr * expr * expr option| Ecallview of type_t * expr * expr * expr| Eunpack of type_t * expr| Eemit of type_t * expr| Eself of lident| Eternary of expr * expr * expr| Eany| Enothing| Eunit| Einvalid
Source
and literal = | Lint of Core.big_int| Lnat of Core.big_int| Ldecimal of string| Ltz of string| Lmtz of string| Lutz of string| Laddress of string| Lstring of string| Lbool of bool| Lduration of string| Ldate of string| Lbytes of string| Lpercent of string
Source
and specification_item_unloc = | Vpredicate of lident * args * expr| Vdefinition of lident * type_t * lident * expr| Vvariable of lident * type_t * expr option| Veffect of expr| Vassert of lident * expr * invariants * lident list| Vfails of (lident * lident option * lident * type_t * expr) list| Vpostcondition of lident * expr * invariants * lident list * postkind option
Source
and security_arg_unloc = | Sident of lident| Sdot of lident * lident| Slist of security_arg list| Sapp of lident * security_arg list| Sbut of lident * security_arg| Sto of lident * security_arg
Source
and s_function = {name : lident;args : args;ret_t : type_t option;spec : specification option;body : expr;getter : bool;view : bool;view_visibility : view_visibility;
}Source
and entry_properties = {accept_transfer : bool * expr option;sourcedby : (expr * expr option * exts) option;calledby : (expr * expr option * exts) option;state_is : (lident * expr option) option;constants : ((lident * expr * expr option) list * exts) option;require : ((lident * expr * expr option) list * exts) option;failif : ((lident * expr * expr option) list * exts) option;spec_fun : specification option;functions : s_function Location.loced list;
}Source
and declaration_unloc = | Darchetype of lident * parameters * metadata option * exts| Dimport of lident * lident| Dvariable of variable_decl| Denum of enum_kind * enum_decl| Dasset of asset_decl| Drecord of record_decl| Dentry of entry_decl| Dtransition of transition_decl| Dextension of extension_decl| Dnamespace of namespace_decl| Dfunction of s_function| Dspecification of specification| Dspecasset of lident * label_exprs| Dspecfun of specfun| Dspecvariable of lident * label_exprs| Dsecurity of security| Dtype of lident * type_t| Devent of record_decl| Dinvalid
Source
and asset_decl =
lident
* field list
* field list
* asset_option list
* asset_post_option list
* asset_operation option
* extsSource
and transition_decl =
lident
* args
* (lident * type_t) option
* expr
* entry_properties
* transition
* extsSource
and asset_post_option = | APOstates of lident| APOconstraints of label_exprs| APOinit of expr list
Source
and archetype_unloc = | Marchetype of declaration list| Mextension of lident * declaration list * declaration list
Source
val pattern_unloc_of_yojson :
Yojson.Safe.t ->
pattern_unloc Ppx_deriving_yojson_runtime.error_orSource
val for_ident_unloc_of_yojson :
Yojson.Safe.t ->
for_ident_unloc Ppx_deriving_yojson_runtime.error_orSource
val quantifier_kind_of_yojson :
Yojson.Safe.t ->
quantifier_kind Ppx_deriving_yojson_runtime.error_orSource
val extension_unloc_of_yojson :
Yojson.Safe.t ->
extension_unloc Ppx_deriving_yojson_runtime.error_orSource
val specification_item_unloc_of_yojson :
Yojson.Safe.t ->
specification_item_unloc Ppx_deriving_yojson_runtime.error_orSource
val specification_item_of_yojson :
Yojson.Safe.t ->
specification_item Ppx_deriving_yojson_runtime.error_orSource
val specification_unloc_of_yojson :
Yojson.Safe.t ->
specification_unloc Ppx_deriving_yojson_runtime.error_orSource
val specification_of_yojson :
Yojson.Safe.t ->
specification Ppx_deriving_yojson_runtime.error_orSource
val security_arg_unloc_of_yojson :
Yojson.Safe.t ->
security_arg_unloc Ppx_deriving_yojson_runtime.error_orSource
val security_arg_of_yojson :
Yojson.Safe.t ->
security_arg Ppx_deriving_yojson_runtime.error_orSource
val security_item_unloc_of_yojson :
Yojson.Safe.t ->
security_item_unloc Ppx_deriving_yojson_runtime.error_orSource
val security_item_of_yojson :
Yojson.Safe.t ->
security_item Ppx_deriving_yojson_runtime.error_orSource
val security_unloc_of_yojson :
Yojson.Safe.t ->
security_unloc Ppx_deriving_yojson_runtime.error_orSource
val view_visibility_of_yojson :
Yojson.Safe.t ->
view_visibility Ppx_deriving_yojson_runtime.error_orSource
val entry_properties_of_yojson :
Yojson.Safe.t ->
entry_properties Ppx_deriving_yojson_runtime.error_orSource
val variable_kind_of_yojson :
Yojson.Safe.t ->
variable_kind Ppx_deriving_yojson_runtime.error_orSource
val declaration_unloc_of_yojson :
Yojson.Safe.t ->
declaration_unloc Ppx_deriving_yojson_runtime.error_orSource
val specfun_kind_of_yojson :
Yojson.Safe.t ->
specfun_kind Ppx_deriving_yojson_runtime.error_orSource
val variable_decl_of_yojson :
Yojson.Safe.t ->
variable_decl Ppx_deriving_yojson_runtime.error_orSource
val transition_decl_of_yojson :
Yojson.Safe.t ->
transition_decl Ppx_deriving_yojson_runtime.error_orSource
val extension_decl_of_yojson :
Yojson.Safe.t ->
extension_decl Ppx_deriving_yojson_runtime.error_orSource
val namespace_decl_of_yojson :
Yojson.Safe.t ->
namespace_decl Ppx_deriving_yojson_runtime.error_orSource
val asset_option_of_yojson :
Yojson.Safe.t ->
asset_option Ppx_deriving_yojson_runtime.error_orSource
val asset_post_option_of_yojson :
Yojson.Safe.t ->
asset_post_option Ppx_deriving_yojson_runtime.error_orSource
val asset_operation_enum_of_yojson :
Yojson.Safe.t ->
asset_operation_enum Ppx_deriving_yojson_runtime.error_orSource
val asset_operation_of_yojson :
Yojson.Safe.t ->
asset_operation Ppx_deriving_yojson_runtime.error_orSource
val archetype_unloc_of_yojson :
Yojson.Safe.t ->
archetype_unloc Ppx_deriving_yojson_runtime.error_orSource
val pp_pattern_unloc :
Ppx_deriving_runtime.Format.formatter ->
pattern_unloc ->
Ppx_deriving_runtime.unitSource
val pp_pattern :
Ppx_deriving_runtime.Format.formatter ->
pattern ->
Ppx_deriving_runtime.unitSource
val pp_var_label :
Ppx_deriving_runtime.Format.formatter ->
var_label ->
Ppx_deriving_runtime.unitSource
val pp_var_vset :
Ppx_deriving_runtime.Format.formatter ->
var_vset ->
Ppx_deriving_runtime.unitSource
val pp_for_ident_unloc :
Ppx_deriving_runtime.Format.formatter ->
for_ident_unloc ->
Ppx_deriving_runtime.unitSource
val pp_for_ident :
Ppx_deriving_runtime.Format.formatter ->
for_ident ->
Ppx_deriving_runtime.unitSource
val pp_transfer_t :
Ppx_deriving_runtime.Format.formatter ->
transfer_t ->
Ppx_deriving_runtime.unitSource
val pp_expr_unloc :
Ppx_deriving_runtime.Format.formatter ->
expr_unloc ->
Ppx_deriving_runtime.unitSource
val pp_quantifier_kind :
Ppx_deriving_runtime.Format.formatter ->
quantifier_kind ->
Ppx_deriving_runtime.unitSource
val pp_option_ :
Ppx_deriving_runtime.Format.formatter ->
option_ ->
Ppx_deriving_runtime.unitSource
val pp_function_ :
Ppx_deriving_runtime.Format.formatter ->
function_ ->
Ppx_deriving_runtime.unitSource
val pp_literal :
Ppx_deriving_runtime.Format.formatter ->
literal ->
Ppx_deriving_runtime.unitSource
val pp_record_item :
Ppx_deriving_runtime.Format.formatter ->
record_item ->
Ppx_deriving_runtime.unitSource
val pp_lident_typ :
Ppx_deriving_runtime.Format.formatter ->
lident_typ ->
Ppx_deriving_runtime.unitSource
val pp_label_expr :
Ppx_deriving_runtime.Format.formatter ->
label_expr ->
Ppx_deriving_runtime.unitSource
val pp_label_exprs :
Ppx_deriving_runtime.Format.formatter ->
label_exprs ->
Ppx_deriving_runtime.unitSource
val pp_extension_unloc :
Ppx_deriving_runtime.Format.formatter ->
extension_unloc ->
Ppx_deriving_runtime.unitSource
val pp_extension :
Ppx_deriving_runtime.Format.formatter ->
extension ->
Ppx_deriving_runtime.unitSource
val pp_field_unloc :
Ppx_deriving_runtime.Format.formatter ->
field_unloc ->
Ppx_deriving_runtime.unitSource
val pp_invariants :
Ppx_deriving_runtime.Format.formatter ->
invariants ->
Ppx_deriving_runtime.unitSource
val pp_specification_item_unloc :
Ppx_deriving_runtime.Format.formatter ->
specification_item_unloc ->
Ppx_deriving_runtime.unitSource
val pp_postkind :
Ppx_deriving_runtime.Format.formatter ->
postkind ->
Ppx_deriving_runtime.unitSource
val pp_specification_item :
Ppx_deriving_runtime.Format.formatter ->
specification_item ->
Ppx_deriving_runtime.unitSource
val pp_specification_unloc :
Ppx_deriving_runtime.Format.formatter ->
specification_unloc ->
Ppx_deriving_runtime.unitSource
val pp_specification :
Ppx_deriving_runtime.Format.formatter ->
specification ->
Ppx_deriving_runtime.unitSource
val pp_security_arg_unloc :
Ppx_deriving_runtime.Format.formatter ->
security_arg_unloc ->
Ppx_deriving_runtime.unitSource
val pp_security_arg :
Ppx_deriving_runtime.Format.formatter ->
security_arg ->
Ppx_deriving_runtime.unitSource
val pp_security_item_unloc :
Ppx_deriving_runtime.Format.formatter ->
security_item_unloc ->
Ppx_deriving_runtime.unitSource
val pp_security_item :
Ppx_deriving_runtime.Format.formatter ->
security_item ->
Ppx_deriving_runtime.unitSource
val pp_security_unloc :
Ppx_deriving_runtime.Format.formatter ->
security_unloc ->
Ppx_deriving_runtime.unitSource
val pp_security :
Ppx_deriving_runtime.Format.formatter ->
security ->
Ppx_deriving_runtime.unitSource
val pp_view_visibility :
Ppx_deriving_runtime.Format.formatter ->
view_visibility ->
Ppx_deriving_runtime.unitSource
val pp_s_function :
Ppx_deriving_runtime.Format.formatter ->
s_function ->
Ppx_deriving_runtime.unitSource
val pp_entry_properties :
Ppx_deriving_runtime.Format.formatter ->
entry_properties ->
Ppx_deriving_runtime.unitSource
val pp_transition :
Ppx_deriving_runtime.Format.formatter ->
transition ->
Ppx_deriving_runtime.unitSource
val pp_parameter :
Ppx_deriving_runtime.Format.formatter ->
parameter ->
Ppx_deriving_runtime.unitSource
val pp_parameters :
Ppx_deriving_runtime.Format.formatter ->
parameters ->
Ppx_deriving_runtime.unitSource
val pp_metadata :
Ppx_deriving_runtime.Format.formatter ->
metadata ->
Ppx_deriving_runtime.unitSource
val pp_variable_kind :
Ppx_deriving_runtime.Format.formatter ->
variable_kind ->
Ppx_deriving_runtime.unitSource
val pp_enum_kind :
Ppx_deriving_runtime.Format.formatter ->
enum_kind ->
Ppx_deriving_runtime.unitSource
val pp_declaration_unloc :
Ppx_deriving_runtime.Format.formatter ->
declaration_unloc ->
Ppx_deriving_runtime.unitSource
val pp_specfun_kind :
Ppx_deriving_runtime.Format.formatter ->
specfun_kind ->
Ppx_deriving_runtime.unitSource
val pp_specfun :
Ppx_deriving_runtime.Format.formatter ->
specfun ->
Ppx_deriving_runtime.unitSource
val pp_variable_decl :
Ppx_deriving_runtime.Format.formatter ->
variable_decl ->
Ppx_deriving_runtime.unitSource
val pp_enum_decl :
Ppx_deriving_runtime.Format.formatter ->
enum_decl ->
Ppx_deriving_runtime.unitSource
val pp_asset_decl :
Ppx_deriving_runtime.Format.formatter ->
asset_decl ->
Ppx_deriving_runtime.unitSource
val pp_record_decl :
Ppx_deriving_runtime.Format.formatter ->
record_decl ->
Ppx_deriving_runtime.unitSource
val pp_entry_decl :
Ppx_deriving_runtime.Format.formatter ->
entry_decl ->
Ppx_deriving_runtime.unitSource
val pp_transition_decl :
Ppx_deriving_runtime.Format.formatter ->
transition_decl ->
Ppx_deriving_runtime.unitSource
val pp_extension_decl :
Ppx_deriving_runtime.Format.formatter ->
extension_decl ->
Ppx_deriving_runtime.unitSource
val pp_namespace_decl :
Ppx_deriving_runtime.Format.formatter ->
namespace_decl ->
Ppx_deriving_runtime.unitSource
val pp_map_kind :
Ppx_deriving_runtime.Format.formatter ->
map_kind ->
Ppx_deriving_runtime.unitSource
val pp_asset_option :
Ppx_deriving_runtime.Format.formatter ->
asset_option ->
Ppx_deriving_runtime.unitSource
val pp_asset_post_option :
Ppx_deriving_runtime.Format.formatter ->
asset_post_option ->
Ppx_deriving_runtime.unitSource
val pp_enum_option :
Ppx_deriving_runtime.Format.formatter ->
enum_option ->
Ppx_deriving_runtime.unitSource
val pp_declaration :
Ppx_deriving_runtime.Format.formatter ->
declaration ->
Ppx_deriving_runtime.unitSource
val pp_asset_operation_enum :
Ppx_deriving_runtime.Format.formatter ->
asset_operation_enum ->
Ppx_deriving_runtime.unitSource
val pp_asset_operation :
Ppx_deriving_runtime.Format.formatter ->
asset_operation ->
Ppx_deriving_runtime.unitSource
val pp_archetype_unloc :
Ppx_deriving_runtime.Format.formatter ->
archetype_unloc ->
Ppx_deriving_runtime.unitSource
val pp_archetype :
Ppx_deriving_runtime.Format.formatter ->
archetype ->
Ppx_deriving_runtime.unitSource
val eterm :
?loc:Location.t ->
?s:scope_import ->
?temp:var_label ->
?delta:var_vset ->
lident ->
expr_unloc Location.locedSource
val erecord :
?loc:Location.t ->
?s:scope_import ->
record_item list ->
expr_unloc Location.locedSource
val emulticomp :
?loc:Location.t ->
expr ->
(comparison_operator Location.loced * expr) list ->
expr_unloc Location.locedSource
val eassign :
?loc:Location.t ->
assignment_operator ->
expr ->
expr ->
expr_unloc Location.locedSource
val efor :
?loc:Location.t ->
?lbl:lident ->
for_ident ->
expr ->
expr ->
expr_unloc Location.locedSource
val eiter :
?loc:Location.t ->
?lbl:lident ->
?min:expr ->
lident ->
expr ->
expr ->
expr_unloc Location.locedSource
val eletin :
?loc:Location.t ->
?t:type_t ->
?o:expr ->
lident ->
expr ->
expr ->
expr_unloc Location.locedSource
val evar :
?loc:Location.t ->
?t:type_t ->
lident ->
expr ->
bool ->
expr_unloc Location.locedSource
val evaropt :
?loc:Location.t ->
?t:type_t ->
lident ->
expr ->
bool ->
expr option ->
expr_unloc Location.locedSource
val equantifier :
?loc:Location.t ->
quantifier ->
lident ->
quantifier_kind ->
expr ->
expr_unloc Location.locedSource
val eentrypoint :
?loc:Location.t ->
type_t ->
expr ->
expr ->
expr option ->
expr_unloc Location.locedSource
val mk_s_function :
lident ->
args ->
type_t option ->
specification option ->
expr ->
bool ->
bool ->
view_visibility ->
s_functionSource
val mk_entry_properties :
?accept_transfer:(bool * expr option) ->
?sourcedby:(expr * expr option * exts) ->
?calledby:(expr * expr option * exts) ->
?state_is:(lident * expr option) ->
?constants:((lident * expr * expr option) list * exts) ->
?require:((lident * expr * expr option) list * exts) ->
?failif:((lident * expr * expr option) list * exts) ->
?spec_fun:specification ->
?functions:s_function Location.loced list ->
'a ->
entry_propertiesSource
val mk_variable_decl :
?dv:expr ->
?le:label_exprs ->
?exts:extension list ->
lident ->
type_t ->
variable_kind ->
variable_declSource
val mk_asset_decl :
?fs:field list ->
?sfs:field list ->
?aos:asset_option list ->
?apos:asset_post_option list ->
?ao:asset_operation ->
?exts:extension list ->
lident ->
asset_declSource
val mk_entry_decl :
?args:args ->
?body:(expr * exts) ->
?exts:extension list ->
lident ->
entry_properties ->
entry_declSource
val mk_transition_decl :
?args:args ->
?te:(lident * type_t) ->
?trs:transition ->
?exts:extension list ->
lident ->
expr ->
entry_properties ->
transition_declSource
val mk_darchetype :
?parameters:parameter list Location.loced ->
?metadata:metadata ->
?exts:extension list ->
?loc:Location.t ->
lident ->
declaration_unloc Location.locedSource
val mk_specasset :
?loc:Location.t ->
lident ->
label_exprs ->
declaration_unloc Location.locedSource
val mk_specfun :
?loc:Location.t ->
specfun_kind ->
lident ->
args ->
specification ->
declaration_unloc Location.locedSource
val mk_specvariable :
?loc:Location.t ->
lident ->
label_exprs ->
declaration_unloc Location.locedSource
val mk_archetype :
?decls:declaration list ->
?loc:Location.t ->
unit ->
archetype_unloc Location.loced