Module Sexp_grammar_completion

Sexp_grammar_completion implements type-directed tab-completion of sexps.

Returns a staged function which generates suggestion candidates from a grammar.

Creates 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.