package links

  1. Overview
  2. Docs

Interface to the parser.

val parse_string : ?pp:string -> ?in_context:LinksLexer.lexer_context -> 'a LinksLexer.grammar -> string -> 'a * Scanner.position_context
val parse_file : ?pp:string -> ?in_context:LinksLexer.lexer_context -> 'a LinksLexer.grammar -> string -> 'a * Scanner.position_context
val parse_channel : ?interactive:(unit -> unit) -> ?in_context:LinksLexer.lexer_context -> 'a LinksLexer.grammar -> (in_channel * string) -> 'a * Scanner.position_context
val parse_readline : string -> ?in_context:LinksLexer.lexer_context -> 'a LinksLexer.grammar -> 'a * Scanner.position_context
OCaml

Innovation. Community. Security.