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.utilities/Morsmall_utilities/TestParser/index.html

Module Morsmall_utilities.TestParserSource

abstract syntax of test expressions

Sourcetype expression =
  1. | And of expression * expression
  2. | Or of expression * expression
  3. | Not of expression
  4. | Binary of string * string * string
  5. | Unary of string * string
  6. | Single of string
Sourceexception Parse_error
Sourceval parse : ?bracket:bool -> string list -> expression option

parse ~bracket wl parses the list of words wl as a test expression (or None if wl is empty). If bracket is true then the last word of wl must be a right bracket.

OCaml

Innovation. Community. Security.