package libdash

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type linno = int
exception ParseException of string
type t =
  1. | Command of linno * assign list * args * redirection list
  2. | Pipe of bool * t list
  3. | Redir of linno * t * redirection list
  4. | Background of linno * t * redirection list
  5. | Subshell of linno * t * redirection list
  6. | And of t * t
  7. | Or of t * t
  8. | Not of t
  9. | Semi of t * t
  10. | If of t * t * t
  11. | While of t * t
  12. | For of linno * arg list * t * string
  13. | Case of linno * arg * case list
  14. | Defun of linno * string * t
and assign = string * arg
and redirection =
  1. | File of redir_type * int * arg
  2. | Dup of dup_type * int * arg
  3. | Heredoc of heredoc_type * int * arg
and redir_type =
  1. | To
  2. | Clobber
  3. | From
  4. | FromTo
  5. | Append
and dup_type =
  1. | ToFD
  2. | FromFD
and heredoc_type =
  1. | Here
  2. | XHere
and args = arg list
and arg = arg_char list
and arg_char =
  1. | C of char
  2. | E of char
  3. | T of string option
  4. | A of arg
  5. | V of var_type * bool * string * arg
  6. | Q of arg
  7. | B of t
and var_type =
  1. | Normal
  2. | Minus
  3. | Plus
  4. | Question
  5. | Assign
  6. | TrimR
  7. | TrimRMax
  8. | TrimL
  9. | TrimLMax
  10. | Length
and case = {
  1. cpattern : arg list;
  2. cbody : t;
}
val of_node : Dash.node Ctypes.union Ctypes.ptr -> t
val skip : t
val to_string : t -> string
OCaml

Innovation. Community. Security.