Module Morsmall
module AST : sig ... end
Shell AST.
Parsers and Converters
exception
SyntaxError of Location.lexing_position
val from_CST : Morbig.CST.program -> AST.program
val parse_file : string -> AST.program
Parses a whole Shell file into a list of
AST.command
. The list can be empty. Can raiseSyntaxError
.
Printers
val pp_print_safe : Stdlib.Format.formatter -> AST.program -> unit
Prints a Shell from its AST.
val pp_print_debug : Stdlib.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