• 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 .For_cst 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
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.

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