Sexp_grammar_completionSexp_grammar_completion implements type-directed tab-completion of sexps.
val complete :
_ Sexp_grammar.t ->
(Sexp_grammar_completion_protocol.Prefix.t ->
Sexp_grammar_completion_protocol.Candidates.t Core.Or_error.t)
Core.Staged.tReturns a staged function which generates suggestion candidates from a grammar.
val command_auto_complete :
_ Sexp_grammar.t ->
Core.Command.Auto_complete.t Core.Staged.tCreates a Command.Auto_complete.t function from a sexp grammar for CLI completions. Does not return completions that would be inserted to the right of the point (i.e. closing parens). Filters completion results to those consistent with the prefix.