package morsmall

  1. Overview
  2. Docs
A concise AST for POSIX shell

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=0882ae5bb8e4ade3749c1d3f45df85ff
sha512=f0aeac41022b06879e92bf864217f7fa1e63deb8815d8bb98bac89ae2146fdeb1eeb118049c143aac0ec2cdddffe8a7038f5042385ef786c9228be0bda3c1b18

doc/morsmall/Morsmall/index.html

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.