package cmdlang

  1. Overview
  2. No Docs
Declarative Command-line Parsing for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

cmdlang-0.0.9.tbz
sha256=44fc0027cc27a8d6b511bbde81b0d31306ec1a3d599476d5bd058510f39e87ef
sha512=e1a18905ff6035eb4c44aed71df0e3d42b8277db9a6e98fe571a3b17428c9ef0a26006cb27b729a60208a8357398decc6a8601caca74dabd2e6de7636bc60b31

doc/cmdlang.ast/Cmdlang_ast/Ast/index.html

Module Cmdlang_ast.AstSource

The internal representation for the EDSL used by the cmdlang library.

Cmdlang doesn't include an execution engine. Instead, Cmdlang parsers are automatically translated to `cmdliner`, `core.command`, or `climate` commands for execution.

When you use the cmdlang library to define a command-line interface, you are effectively building a value of type Cmdlang_ast.Ast.Command.t. It is then converted internally to the targeted backend.

This module is not meant to be used directly by users of the library. Rather, users use the Cmdlang.Command interface which provides a high-level API meant to be ergonomic and user-friendly.

Cmdlang_ast is exposed to allow extending the library with new backends or to write analysis tools, etc.

Sourcetype 'a or_error_msg = ('a, [ `Msg of string ]) Stdlib.result
type 'a parse := string -> 'a or_error_msg
type 'a print := Stdlib.Format.formatter -> 'a -> unit
Sourcemodule Nonempty_list : sig ... end
Sourcemodule Param : sig ... end
Sourcemodule Arg : sig ... end
Sourcemodule Command : sig ... end
OCaml

Innovation. Community. Security.