Module Automaton.Stack

module For_cst : sig ... end
module Just_positions : sig ... end

The recorded positions are stored elsewhere

type t =
  1. | Empty
  2. | Open of t
  3. | Sexp of Sexplib0.Sexp.t * t
val empty : t
val get_single : t -> Sexplib0.Sexp.t

Raises if t is not exactly one complete sexp.

val get_many : t -> Sexplib0.Sexp.t list

Raises if t contains a partial sexp.