package utop

  1. Overview
  2. Docs

OCaml completion.

val complete : syntax:UTop.syntax -> phrase_terminator:string -> input:string -> int * (string * string) list

complete ~syntax ~phrase_terminator ~input returns the start of the completed word in input and the list of possible completions with their suffixes.

val reset : unit -> unit

Reset global cache. It must be called before each interactive read line.

OCaml

Innovation. Community. Security.