morsmall

A concise AST for POSIX shell
IN THIS PACKAGE
Module Morsmall
module AST : sig ... end

Shell AST.

Parsers

exception SyntaxError of Location.lexing_position
val 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

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

Prints a Shell from its AST.

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

Prints a representation of the AST in OCaml-style.

Other Modules

module Location : sig ... end
module SafePrinter : sig ... end
module CST_to_AST : sig ... end
module Utilities = Morsmall_utilities