Module Parser_automaton_internal.Public
type ('u, 's) mode=|SingleParse a single s-expression
|ManyParse a list of s-expressions
|Eager of{got_sexp : ('u, 's) state -> 's -> 's;Whether to consider no s-expression in the input as an error or not.
The mutability is used in
Parsexp.Eager*.Lexbuf_consumer.mutable no_sexp_is_error : bool;}Gives back s-expressions as soon as they are found.
type state_csttype ('u, 's) kind=|Positions : (Parsexp.Positions.Builder.t, unit) kind|Sexp : (unit, Parsexp__.Automaton_stack.t) kind|Sexp_with_positions : (Parsexp.Positions.Builder.t, Parsexp__.Automaton_stack.t) kind|Cst : (state_cst, Parsexp__.Automaton_stack.For_cst.t) kind
val new_state : ?initial_pos:Parsexp.Positions.pos -> ('u, 's) mode -> ('u, 's) kind -> ('u, 's) stateval reset : ?pos:Parsexp.Positions.pos -> (_, _) state -> unitval positions : (Parsexp.Positions.Builder.t, _) state -> Parsexp.Positions.tval mode : ('u, 's) state -> ('u, 's) modeval offset : (_, _) state -> intNumber of characters fed to the parser
val line : (_, _) state -> intPosition in the text
val column : (_, _) state -> intval has_unclosed_paren : ('u, 's) state -> boolWhether there are some unclosed parentheses
val set_error_state : (_, _) state -> unit