package archetype
Module Archetype.ParseTreeSource
Source
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 logical_operator_of_yojson :
Yojson.Safe.t ->
logical_operator Ppx_deriving_yojson_runtime.error_orSource
val pp_comparison_operator :
Ppx_deriving_runtime.Format.formatter ->
comparison_operator ->
Ppx_deriving_runtime.unitSource
val comparison_operator_of_yojson :
Yojson.Safe.t ->
comparison_operator Ppx_deriving_yojson_runtime.error_orSource
val pp_arithmetic_operator :
Ppx_deriving_runtime.Format.formatter ->
arithmetic_operator ->
Ppx_deriving_runtime.unitSource
val arithmetic_operator_of_yojson :
Yojson.Safe.t ->
arithmetic_operator Ppx_deriving_yojson_runtime.error_orSource
val pp_unary_operator :
Ppx_deriving_runtime.Format.formatter ->
unary_operator ->
Ppx_deriving_runtime.unitSource
val unary_operator_of_yojson :
Yojson.Safe.t ->
unary_operator Ppx_deriving_yojson_runtime.error_orSource
val pp_assignment_operator :
Ppx_deriving_runtime.Format.formatter ->
assignment_operator ->
Ppx_deriving_runtime.unitSource
val assignment_operator_of_yojson :
Yojson.Safe.t ->
assignment_operator Ppx_deriving_yojson_runtime.error_orSource
val pp_quantifier :
Ppx_deriving_runtime.Format.formatter ->
quantifier ->
Ppx_deriving_runtime.unitSource
type operator = [ | `Logical of logical_operator| `Cmp of comparison_operator| `Arith of arithmetic_operator| `Unary of unary_operator
]Source
val pp_operator :
Ppx_deriving_runtime.Format.formatter ->
operator ->
Ppx_deriving_runtime.unitSource
val pp_pattern_unloc :
Ppx_deriving_runtime.Format.formatter ->
pattern_unloc ->
Ppx_deriving_runtime.unitSource
val pattern_unloc_of_yojson :
Yojson.Safe.t ->
pattern_unloc Ppx_deriving_yojson_runtime.error_orSource
val pp_pattern :
Ppx_deriving_runtime.Format.formatter ->
pattern ->
Ppx_deriving_runtime.unitSource
type expr_unloc = | Eterm of s_term * lident| Eliteral of literal| Earray of expr list| Erecord of record_item list| Etuple of expr list| Edot of expr * lident| Emulticomp of expr * (comparison_operator Location.loced * expr) list| Eapp of function_ * expr list| Emethod of expr * lident * expr list| Etransfer of expr * bool * lident option| Erequire of expr| Efailif of expr| Eassign of assignment_operator * expr * expr| Eif of expr * expr * expr option| Ebreak| Efor of lident option * lident * expr * expr| Eiter of lident option * lident * expr 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_| Einvalid
Source
and literal = | Lnumber of Core.big_int| Lrational of Core.big_int * Core.big_int| Ltz of Core.big_int| Lmtz of Core.big_int| Lmutz of Core.big_int| Laddress of string| Lstring of string| Lbool of bool| Lduration of string| Ldate of string
Source
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 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 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
type specification_item_unloc = | Vpredicate of lident * args * expr| Vdefinition of lident * type_t * lident * expr| Vlemma of lident * expr| Vtheorem of lident * expr| Vvariable of lident * type_t * expr option| Veffect of expr| Vassert of lident * expr * invariants * lident list| Vpostcondition of lident * expr * invariants * lident list
Source
val pp_specification_item_unloc :
Ppx_deriving_runtime.Format.formatter ->
specification_item_unloc ->
Ppx_deriving_runtime.unitSource
val specification_item_unloc_of_yojson :
Yojson.Safe.t ->
specification_item_unloc Ppx_deriving_yojson_runtime.error_orSource
val pp_specification_item :
Ppx_deriving_runtime.Format.formatter ->
specification_item ->
Ppx_deriving_runtime.unitSource
val specification_item_of_yojson :
Yojson.Safe.t ->
specification_item Ppx_deriving_yojson_runtime.error_orSource
val pp_specification_unloc :
Ppx_deriving_runtime.Format.formatter ->
specification_unloc ->
Ppx_deriving_runtime.unitSource
val specification_unloc_of_yojson :
Yojson.Safe.t ->
specification_unloc Ppx_deriving_yojson_runtime.error_orSource
val pp_specification :
Ppx_deriving_runtime.Format.formatter ->
specification ->
Ppx_deriving_runtime.unitSource
val specification_of_yojson :
Yojson.Safe.t ->
specification Ppx_deriving_yojson_runtime.error_orSource
type 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
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 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 pp_security_item_unloc :
Ppx_deriving_runtime.Format.formatter ->
security_item_unloc ->
Ppx_deriving_runtime.unitSource
val security_item_unloc_of_yojson :
Yojson.Safe.t ->
security_item_unloc Ppx_deriving_yojson_runtime.error_orSource
val pp_security_item :
Ppx_deriving_runtime.Format.formatter ->
security_item ->
Ppx_deriving_runtime.unitSource
val security_item_of_yojson :
Yojson.Safe.t ->
security_item Ppx_deriving_yojson_runtime.error_orSource
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 security_unloc_of_yojson :
Yojson.Safe.t ->
security_unloc Ppx_deriving_yojson_runtime.error_orSource
val pp_s_function :
Ppx_deriving_runtime.Format.formatter ->
s_function ->
Ppx_deriving_runtime.unitSource
type action_properties = {accept_transfer : bool;calledby : (expr * exts) option;require : (label_exprs * exts) option;failif : (label_exprs * exts) option;spec : specification option;functions : s_function Location.loced list;
}Source
val pp_action_properties :
Ppx_deriving_runtime.Format.formatter ->
action_properties ->
Ppx_deriving_runtime.unitSource
val action_properties_of_yojson :
Yojson.Safe.t ->
action_properties Ppx_deriving_yojson_runtime.error_orSource
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 variable_kind_of_yojson :
Yojson.Safe.t ->
variable_kind Ppx_deriving_yojson_runtime.error_orSource
val pp_enum_kind :
Ppx_deriving_runtime.Format.formatter ->
enum_kind ->
Ppx_deriving_runtime.unitSource
type declaration_unloc = | Darchetype of lident * exts| Dvariable of variable_decl| Denum of enum_kind * enum_decl| Dasset of asset_decl| Daction of action_decl| Dtransition of transition_decl| Dcontract of contract_decl| Dextension of extension_decl| Dnamespace of namespace_decl| Dfunction of s_function| Dspecification of specification| Dsecurity of security| Dinvalid
Source
and variable_decl =
lident
* type_t
* expr option
* value_option list option
* variable_kind
* extsSource
and asset_decl =
lident
* field list
* asset_option list
* asset_post_option list
* asset_operation option
* extsSource
and transition_decl =
lident
* args
* (lident * type_t) option
* expr
* action_properties
* transition
* extsSource
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_action_decl :
Ppx_deriving_runtime.Format.formatter ->
action_decl ->
Ppx_deriving_runtime.unitSource
val pp_transition_decl :
Ppx_deriving_runtime.Format.formatter ->
transition_decl ->
Ppx_deriving_runtime.unitSource
val pp_contract_decl :
Ppx_deriving_runtime.Format.formatter ->
contract_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_value_option :
Ppx_deriving_runtime.Format.formatter ->
value_option ->
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_signature :
Ppx_deriving_runtime.Format.formatter ->
signature ->
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 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 contract_decl_of_yojson :
Yojson.Safe.t ->
contract_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 value_option_of_yojson :
Yojson.Safe.t ->
value_option 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
type archetype_unloc = | Marchetype of declaration list| Mextension of lident * declaration list * declaration list
Source
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 archetype_unloc_of_yojson :
Yojson.Safe.t ->
archetype_unloc Ppx_deriving_yojson_runtime.error_orSource
val mk_archetype :
?decls:declaration list ->
?loc:Location.t ->
unit ->
archetype_unloc Location.loced