package tezos-client-003-PsddFKi3

  1. Overview
  2. Docs
type parsed = {
  1. source : string;
    (*

    The original source code.

    *)
  2. unexpanded : string Tezos_micheline.Micheline.canonical;
    (*

    Original expression with macros.

    *)
  3. expanded : Tezos_protocol_003_PsddFKi3.Protocol.Alpha_context.Script.expr;
    (*

    Expression with macros fully expanded.

    *)
  4. expansion_table : (int * (Tezos_micheline.Micheline_parser.location * int list)) list;
    (*

    Associates unexpanded nodes to their parsing locations and the nodes expanded from it in the expanded expression.

    *)
  5. unexpansion_table : (int * int) list;
    (*

    Associates an expanded node to its source in the unexpanded expression.

    *)
}

The result of parsing and expanding a Michelson V1 script or data.

val parse_toplevel : ?check:bool -> string -> parsed Tezos_micheline.Micheline_parser.parsing_result
val parse_expression : ?check:bool -> string -> parsed Tezos_micheline.Micheline_parser.parsing_result
OCaml

Innovation. Community. Security.