• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • parsexp

  • Documentation
  • parsexp lib
  • Parsexp .Private .Automaton_stack Module
package parsexp
  • parsexp
    • Parsexp
      • Conv
      • Conv_error
      • Conv_many
      • Conv_many_at_once
      • Conv_single
      • Cst
        • Forget
      • Eager
        • Lexbuf_consumer
        • Stack
        • State
          • Read_only
      • Eager_and_positions
        • Lexbuf_consumer
        • Stack
        • State
          • Read_only
      • Eager_cst
        • Lexbuf_consumer
        • Stack
        • State
          • Read_only
      • Eager_just_positions
        • Lexbuf_consumer
        • Stack
        • State
          • Read_only
      • Eager_parser
        • Lexbuf_consumer
        • Stack
        • State
          • Read_only
      • Many
        • Stack
        • State
      • Many_and_positions
        • Stack
        • State
      • Many_cst
        • Stack
        • State
      • Many_just_positions
        • Stack
        • State
      • Of_sexp_error
      • Old_parser_cont_state
      • Parse_error
      • Parser
        • Stack
        • State
      • Positions
        • Builder
        • Iterator
      • Private
        • Automaton
          • Context
          • For_cst
          • Kind
          • Mode
          • Stack
            • For_cst
            • Just_positions
          • State
        • Automaton_stack
          • For_cst
          • Just_positions
        • Automaton_state
          • Context
          • For_cst
          • Kind
          • Mode
          • State
      • Single
        • Stack
        • State
      • Single_and_positions
        • Stack
        • State
      • Single_just_positions
        • Stack
        • State
Legend:
Library
Module
Module type
Parameter
Class
Class type
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.

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct