Character_parser.NormalNormal Parser.
State: User state.Final: Final result type of the parser.Semantic: Semantic error message (triggered by fail message)Context_msg: Each new context is opened with a value of type Context_msg.module State : Module_types.ANYmodule Final : Module_types.ANYmodule Semantic : Module_types.ANYmodule Context_msg : Module_types.ANYmodule Context : CONTEXT with type msg = Context_msg.tmodule Error :
Generic_parser.ERROR
with type expect = string * Indent.t
and type semantic = Semantic.ttype final = Final.tinclude COMBINATORS
with type expect = string
and type semantic = Semantic.t
and type state = State.t
and type context = Context_msg.tinclude Generic_parser.COMBINATORS with type semantic = Semantic.ttype semantic = Semantic.tval return : 'a -> 'a tval succeed : 'a -> 'a tval get_position : Position.t ttype state = State.tval get_bounds : (int * int option) ttype context = Context_msg.tval expect : (char -> bool) -> string -> char tCharacter Combinators
val expect_end : unit tval whitespace_char : char tval whitespace : int tval one_of_chars : string -> string -> unit tval string : string -> unit tval char : char -> unit tval space : unit tval letter : char tval digit : char tval word : (char -> bool) -> (char -> bool) -> string -> string tinclude PARSERval needs_more : parser -> boolDoes the parser need more tokens (i.e. either put_char or put_end)?
val has_ended : parser -> boolHas the parser terminated (opposite of needs_more p)?
val has_succeeded : parser -> boolHas the parser succeeded
val position : parser -> Position.tThe current position.
val line : parser -> intThe current line.
val column : parser -> intThe current column.
val error_tabs : parser -> int listput_char p c feeds the parser p with the character token c. Only possible if needs_more p is valid.
The result the parser has produced which is either a final value or a list of dead ends. Only valid if the parser has terminated.
The list of tokens (i.e. optional characters) which the parser has not processed at the point of termination.
val lookahead_string : parser -> stringmake pc st makes a parser from a parser combinator pc with the initial state st.