package parsexp

  1. Overview
  2. Docs
type t =
  1. | Empty
    (*

    at top-level

    *)
  2. | T_or_comment of Cst.t_or_comment * t
    (*

    after the given sexp or comment

    *)
  3. | Open of Positions.pos * t
    (*

    after the opening paren

    *)
  4. | In_sexp_comment of {
    1. hash_semi_pos : Positions.pos;
    2. rev_comments : Cst.comment list;
    3. stack : t;
    }
    (*

    In_sexp_comment only indicates if the next s-expression is to be commented out, but if we are nested below parens below an sexp comment, the stack would look like Open (.., In_sexp_comment ..).

    *)
val empty : t
val get_many : t -> Cst.t_or_comment list

Raises if t contains a partial sexp.