package tezos-protocol-015-PtLimaPt
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
    
    
  sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
    
    
  doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/Script_ir_annot/index.html
Module Tezos_raw_protocol_015_PtLimaPt.Script_ir_annotSource
val error_unexpected_annot : 
  Alpha_context.Script.location ->
  'a list ->
  unit Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultcheck_xxx_annot functions below are remains from the past (they were called parse_xxx_annot before). They check that annotations are well-formed and, depending on different contexts, that only the annotations that are expected to be found are present. Hopefully we will relax this property soon.
val check_type_annot : 
  Alpha_context.Script.location ->
  string list ->
  unit Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultCheck a type annotation only.
val is_field_annot : 
  Alpha_context.Script.location ->
  string ->
  bool Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultCheck a field annotation only.
val check_composed_type_annot : 
  Alpha_context.Script.location ->
  string list ->
  unit Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultCheck an annotation for composed types, of the form :ty_name %field1 %field2 in any order.
val has_field_annot : 
  Alpha_context.Script.node ->
  bool Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultChecks whether a node has a field annotation.
val remove_field_annot : 
  Alpha_context.Script.node ->
  Alpha_context.Script.node
    Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultRemoves a field annotation from a node.
val extract_entrypoint_annot : 
  Alpha_context.Script.node ->
  (Alpha_context.Script.node * Alpha_context.Entrypoint.t option)
    Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultExtract and remove a field annotation as an entrypoint from a node
Instruction annotations parsing
val check_var_annot : 
  Alpha_context.Script.location ->
  string list ->
  unit Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultCheck a variable annotation.
val check_constr_annot : 
  Alpha_context.Script.location ->
  string list ->
  unit Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultval check_two_var_annot : 
  Alpha_context.Script.location ->
  string list ->
  unit Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultval check_destr_annot : 
  Alpha_context.Script.location ->
  string list ->
  unit Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultval check_unpair_annot : 
  Alpha_context.Script.location ->
  string list ->
  unit Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultval parse_entrypoint_annot_strict : 
  Alpha_context.Script.location ->
  string list ->
  Alpha_context.Entrypoint.t
    Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultParses a field annotation and converts it to an entrypoint. An error is returned if the annotation is too long or is "default". An empty annotation is converted to "default".
val parse_entrypoint_annot_lax : 
  Alpha_context.Script.location ->
  string list ->
  Alpha_context.Entrypoint.t
    Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultParse a field annotation and convert it to an entrypoint. An error is returned if the field annot is too long. An empty annotation is converted to "default".
val check_var_type_annot : 
  Alpha_context.Script.location ->
  string list ->
  unit Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult