package archetype
Module Archetype.ParseTreeSource
Source
and type_r = | Tref of id_scope * 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 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_id_scope :
Ppx_deriving_runtime.Format.formatter ->
id_scope ->
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_operator :
Ppx_deriving_runtime.Format.formatter ->
operator ->
Ppx_deriving_runtime.unitSource
and micheline_t = | MIstring of string| MIint of Core.big_int| MIbytes of string| MIprim of string * micheline_t list * string list| MIseq of micheline_t list
Source
and expr_unloc = | Eterm of id_scope * lident| Eliteral of literal| Earray of id_scope * expr list| Erecord of id_scope * record_item list| Etuple of expr list| Edot of expr * id_scope * lident| Equestiondot of expr * id_scope * 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 method_kind * lident * expr list| Etransfer of transfer_t| Edetach of lident * expr * expr| Edorequire of expr * expr| Edofailif of expr * expr| Efail of expr| Efailexpr of expr| Efailsome of expr| Eassign of assignment_operator * expr * expr| Eassignopt of expr * expr * expr| Eif of expr * expr * expr option| Efor of for_ident * expr * expr| Eiter of lident * expr option * expr * expr| Ewhile of expr * expr| Eseq of expr * expr| Eletin of lident * type_t option * expr * expr * expr option| Evar of lident list * type_t option * expr * var_decl_kind * bool| Ematchwith of expr * branch list * match_kind| Efold of expr * lident * expr| Emap of expr * lident * expr| Erecupdate of expr * (lident * expr) list| Ereturn of expr| Eoption of option_| Eor of or_| Elambda of type_t option * lident * type_t option * expr| Elambda_michelson of type_t * type_t * micheline_t| 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| Etz_expr of string| Emicheline of micheline_t| Emicheline_expr of type_t * micheline_t * expr list| 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| LnumberFr of Core.big_int| LbytesFr of string| LbytesG1 of string| LbytesG2 of string
Source
and entry_properties = {accept_transfer : bool * expr option;sourcedby : (expr * expr option) Location.loced option;calledby : (expr * expr option) Location.loced option;state_is : (lident * expr option) Location.loced option;constants : (lident * expr * expr option) Location.loced list option;require : (lident * expr * expr option) Location.loced list option;failif : (lident * expr * expr option) Location.loced list option;functions : s_function Location.loced list;
}Source
and declaration_unloc = | Darchetype of lident * parameters * metadata option| Dimport of lident option * lident| Dvariable of variable_decl| Denum of enum_kind * enum_decl| Dasset of asset_decl| Drecord of record_decl| Dentry of entry_decl| Dgetter of getter_decl| Dtransition of transition_decl| Dnamespace of namespace_decl| Dfunction of s_function| Dtype of lident * type_t| Devent of record_decl| Dinvalid
Source
and asset_decl =
lident
* field list
* asset_option list
* asset_post_option list
* asset_operation optionSource
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 var_decl_kind_of_yojson :
Yojson.Safe.t ->
var_decl_kind 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 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 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_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_micheline_t :
Ppx_deriving_runtime.Format.formatter ->
micheline_t ->
Ppx_deriving_runtime.unitSource
val pp_method_kind :
Ppx_deriving_runtime.Format.formatter ->
method_kind ->
Ppx_deriving_runtime.unitSource
val pp_match_kind :
Ppx_deriving_runtime.Format.formatter ->
match_kind ->
Ppx_deriving_runtime.unitSource
val pp_var_decl_kind :
Ppx_deriving_runtime.Format.formatter ->
var_decl_kind ->
Ppx_deriving_runtime.unitSource
val pp_expr_unloc :
Ppx_deriving_runtime.Format.formatter ->
expr_unloc ->
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_field_unloc :
Ppx_deriving_runtime.Format.formatter ->
field_unloc ->
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_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_getter_decl :
Ppx_deriving_runtime.Format.formatter ->
getter_decl ->
Ppx_deriving_runtime.unitSource
val pp_transition_decl :
Ppx_deriving_runtime.Format.formatter ->
transition_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_init_asset :
Ppx_deriving_runtime.Format.formatter ->
init_asset ->
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 equestiondot :
?loc:Location.t ->
expr ->
(id_scope * lident) ->
expr_unloc Location.locedSource
val emulticomp :
?loc:Location.t ->
expr ->
(comparison_operator Location.loced * expr) list ->
expr_unloc Location.locedSource
val eappt :
?loc:Location.t ->
function_ ->
type_t list ->
expr list ->
expr_unloc Location.locedSource
val emethod :
?loc:Location.t ->
method_kind ->
lident ->
expr list ->
expr_unloc Location.locedSource
val eassign :
?loc:Location.t ->
assignment_operator ->
expr ->
expr ->
expr_unloc Location.locedSource
val eiter :
?loc:Location.t ->
?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 list ->
expr ->
var_decl_kind ->
bool ->
expr_unloc Location.locedSource
val ematchwith :
?loc:Location.t ->
expr ->
branch list ->
match_kind ->
expr_unloc Location.locedSource
val elambda :
?loc:Location.t ->
type_t option ->
lident ->
type_t option ->
expr ->
expr_unloc Location.locedSource
val elambda_michelson :
?loc:Location.t ->
type_t ->
type_t ->
micheline_t ->
expr_unloc Location.locedSource
val eentrypoint :
?loc:Location.t ->
type_t ->
expr ->
expr ->
expr option ->
expr_unloc Location.locedSource
val ecallview :
?loc:Location.t ->
type_t ->
expr ->
expr ->
expr ->
expr_unloc Location.locedSource
val emicheline_expr :
?loc:Location.t ->
type_t ->
micheline_t ->
expr list ->
expr_unloc Location.locedSource
val mk_s_function :
lident ->
args ->
type_t option ->
expr ->
bool ->
view_visibility ->
s_functionSource
val mk_entry_properties :
?accept_transfer:(bool * expr option) ->
?sourcedby:(expr * expr option) Location.loced ->
?calledby:(expr * expr option) Location.loced ->
?state_is:(lident * expr option) Location.loced ->
?constants:(lident * expr * expr option) Location.loced list ->
?require:(lident * expr * expr option) Location.loced list ->
?failif:(lident * expr * expr option) Location.loced list ->
?functions:s_function Location.loced list ->
'a ->
entry_propertiesSource
val mk_asset_decl :
?fs:field list ->
?aos:asset_option list ->
?apos:asset_post_option list ->
?ao:asset_operation ->
lident ->
asset_declSource
val mk_transition_decl :
?args:args ->
?trs:transition ->
lident ->
expr ->
entry_properties ->
transition_declSource
val mk_darchetype :
?parameters:parameter list Location.loced ->
?metadata:metadata ->
?loc:Location.t ->
lident ->
declaration_unloc Location.loced