package morsmall

  1. Overview
  2. Docs

Module MorsmallSource

Sourcemodule AST : sig ... end

Shell AST.

Parsers

Sourceexception SyntaxError of Location.lexing_position
Sourceval parse_file : string -> AST.program

Parses a whole Shell file into a list of AST.command. The list can be empty. Can raise SyntaxError.

Printers

Sourceval pp_print_safe : Format.formatter -> AST.program -> unit

Prints a Shell from its AST.

Sourceval pp_print_debug : Format.formatter -> AST.program -> unit

Prints a representation of the AST in OCaml-style.

Other Modules

Sourcemodule Location : sig ... end
Sourcemodule SafePrinter : sig ... end
Sourcemodule CST_to_AST : sig ... end
Sourcemodule Utilities = Morsmall_utilities
OCaml

Innovation. Community. Security.