package archetype
Module Archetype.ParseTreeSource
Source
and operator = | Logical of logical_operator| Cmp of comparison_operator| Arith of arithmetic_operator| Unary of unary_operator
Source
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_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 var_vset option * var_label option * lident| Eliteral of literal| Earray of expr list| Erecord of record_item list| Etuple of expr list| Edot of expr * lident| Esqapp of expr * expr| Emulticomp of expr * (comparison_operator Location.loced * expr) list| Eapp of function_ * expr list| Emethod of expr * lident * expr list| Etransfer of expr * transfer_t| Edorequire of expr * expr| Edofailif of expr * expr| Efail of expr| Eassign of assignment_operator * expr * expr| Eif of expr * expr * expr option| Ebreak| 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| Ematchwith of expr * branch list| Equantifier of quantifier * lident * quantifier_kind * expr| Eassert of lident| Elabel of lident| Ereturn of expr| Eoption of option_| Eentrypoint of type_t * expr * expr| Eunpack of type_t * expr| Eself of lident| Eany| Enothing| Einvalid
Source
and literal = | Lint of Core.big_int| Lnat of Core.big_int| Ldecimal of string| Ltz of Core.big_int| Lmtz of Core.big_int| Lutz of Core.big_int| Laddress of string| Lstring of string| Lbool of bool| Lduration of string| Ldate of string| Lbytes of string| Lpercent of Core.big_int
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 entry_properties = {accept_transfer : bool;calledby : (expr * 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 * exts| 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| Dsecurity of security| 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 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 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_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_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_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_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 mk_archetype :
?decls:declaration list ->
?loc:Location.t ->
unit ->
archetype_unloc Location.loced