package graphql_ppx

  1. Overview
  2. Docs
type parser = {
  1. mutable tokens : Graphql_lexer.token Source_pos.spanning list;
}
type parseError =
  1. | Unexpected_token of Graphql_lexer.token
  2. | Unexpected_end_of_file
  3. | Lexer_error of Graphql_lexer.lexerError
exception Internal_parse_error
val expect_name : parser -> (string Source_pos.spanning, parseError Source_pos.spanning) Result.result
val expect_dotted_name : parser -> (string Source_pos.spanning, parseError Source_pos.spanning) Result.result
val delimited_list : parser -> Graphql_lexer.token -> (parser -> ('a, parseError Source_pos.spanning) Result.result) -> Graphql_lexer.token -> ('a list Source_pos.spanning, parseError Source_pos.spanning) Result.result
val delimited_nonempty_list : parser -> Graphql_lexer.token -> (parser -> ('a, parseError Source_pos.spanning) Result.result) -> Graphql_lexer.token -> ('a list Source_pos.spanning, parseError Source_pos.spanning) Result.result
OCaml

Innovation. Community. Security.