Index of values


( * ) [EDSL.Integer]
( * ) [Language.Construct.Integer]
(&&&) [EDSL]
(&&&) [Language.Construct]
(&) [EDSL.Command_line.Arg]
(+) [EDSL.Integer]
(+) [Language.Construct.Integer]
(-) [EDSL.Integer]
(-) [Language.Construct.Integer]
(/) [EDSL.Integer]
(/) [Language.Construct.Integer]
(<$>) [EDSL]
(<$>) [Language.Construct]
(<) [EDSL.Integer]
(<) [Language.Construct.Integer]
(<=) [EDSL.Integer]
(<=) [Language.Construct.Integer]
(<>) [EDSL.Integer]
(<>) [Language.Construct.Integer]
(=$=) [EDSL]
(=$=) [Language.Construct]
(=) [EDSL.Integer]
(=) [Language.Construct.Integer]
(>) [EDSL.Integer]
(>) [Language.Construct.Integer]
(>=) [EDSL.Integer]
(>=) [Language.Construct.Integer]
(>>) [EDSL]
str >> cmd is feed ~string:str cmd.
(>>) [Language.Construct]
(mod) [EDSL.Integer]
(mod) [Language.Construct.Integer]
(||>) [EDSL]
a ||> b is a shortcut for pipe [a; b].
(||>) [Language.Construct]
(|||) [EDSL]
(|||) [Language.Construct]

A
add [EDSL.Integer]
add [Language.Construct.Integer]

B
bin_op [EDSL.Integer]
bin_op [Language.Construct.Integer]
bool [EDSL]
bool [Language.Construct]

C
call [EDSL]
Call a command from its list of “arguments” (including the first argument being the actual command).
call [Language.Construct]
case [EDSL]
Create a normal case for a EDSL.switch statement.
cmp [EDSL.Integer]
cmp [Language.Construct.Integer]
compile [Language]
create [Common.Unique_name]

D
default [EDSL]
Create the default case for a EDSL.switch statement.
div [EDSL.Integer]
div [Language.Construct.Integer]

E
easy_to_escape [Language.Literal.String]
eprintf [EDSL]
Like EDSL.printf but redirected to "stderr".
eq [EDSL.Integer]
eq [Language.Construct.Integer]
exec [EDSL]
Like EDSL.call but with string literals; i.e.
exec [Language.Construct]

F
fail [EDSL]
Expression that aborts the whole script/command immediately.
fail [Language.Construct]
feed [EDSL]
Feed some content (~string) into the "stdin" filedescriptor of a unit t expression.
feed [Language.Construct]
file_exists [EDSL]
file_exists [Language.Construct]
flag [EDSL.Command_line.Arg]

G
ge [EDSL.Integer]
ge [Language.Construct.Integer]
getenv [EDSL]
Get the value of an environment variable as a string; it returns the empty string when the variable is not defined.
getenv [Language.Construct]
gt [EDSL.Integer]
gt [Language.Construct.Integer]

I
if_seq [EDSL]
if_seq c ~t ~e is an alternate API for EDSL.if_then_else (when ?e is provided) or EDSL.if_then (otherwise) that assumes “then” and “else” bodies to be lists for EDSL.seq construct.
if_then [EDSL]
if_then [Language.Construct]
if_then_else [EDSL]
if_then_else [Language.Construct]
impossible_to_escape_for_variable [Language.Literal.String]
int [EDSL]
int [Language.Construct]

L
le [EDSL.Integer]
le [Language.Construct.Integer]
list [EDSL]
list [Language.Construct]
list_append [EDSL]
list_append [Language.Construct]
list_iter [EDSL]
list_iter [Language.Construct]
list_of_string [EDSL]
list_of_string [Language.Construct]
list_to_string [EDSL]
list_to_string [Language.Construct]
literal [Language.Construct]
loop_while [EDSL]
loop_while [Language.Construct]
lt [EDSL.Integer]
lt [Language.Construct.Integer]

M
make_switch [Language.Construct]
modulo [EDSL.Integer]
modulo [Language.Construct.Integer]
mul [EDSL.Integer]
mul [Language.Construct.Integer]

N
ne [EDSL.Integer]
ne [Language.Construct.Integer]
nop [EDSL]
The silent “no-operation.”
nop [Language.Construct]
not [EDSL]
not [Language.Construct]

O
of_string [EDSL.Integer]
of_string [EDSL.Bool]
of_string [Language.Construct.Integer]
of_string [Language.Construct.Bool]
output_as_string [EDSL]
output_as_string [Language.Construct]

P
parse [EDSL.Command_line]
pipe [EDSL]
Pipe commands together ("stdout" into "stdin" exactly like the " | " operator).
pipe [Language.Construct]
printf [EDSL]
printf fmt l is call (string "printf" :: string "--" :: fmt :: l).

R
returns [EDSL]
Check the return value of a command/expression/script.
returns [Language.Construct]

S
seq [EDSL]
Sequence a list of expressions into an expression.
seq [Language.Construct]
setenv [EDSL]
Set the value of an environment variable as a string; it returns the empty string is the variable is not defined.
setenv [Language.Construct]
string [EDSL.Command_line.Arg]
string [EDSL]
string [Language.Construct]
string_concat [EDSL]
Concatenate an (OCaml) list of string t values.
string_concat_list [EDSL]
Concatenate a Genspio list of strings string list t.
string_concat_list [Language.Construct]
sub [EDSL.Integer]
sub [Language.Construct.Integer]
succeeds [EDSL]
succeeds expr is a equivalent to returns expr ~value:0.
succeeds [Language.Construct]
switch [EDSL]
Create a switch statement from a list of EDSL.case and optionally a EDSL.default (the function raises an exception if there are more than one default cases).

T
tmp_file [EDSL]
Create a temporary file that may contain arbitrary strings (can be used as variable containing string t values).
to_fd [EDSL]
Create a file-descriptor to file-descriptor redirection.
to_fd [Language.Construct]
to_file [EDSL]
Create a file-descriptor to file redirection.
to_file [Language.Construct]
to_many_lines [Compile]
Compile a Genspio expression to a multi-line POSIX shell script, slightly more readable than Compile.to_one_liner.
to_many_lines [Language]
to_one_liner [Compile]
Compile a Genspio expression to a single-line POSIX shell command.
to_one_liner [Language]
to_shell [Language.Literal]
to_shell [Language]
to_string [EDSL.Integer]
to_string [EDSL.Bool]
to_string [Language.Construct.Integer]
to_string [Language.Construct.Bool]

U
unit [EDSL.Magic]
Put any string as a unit t command inline (Magic.unit s is different from exec ["sh"; "-c"; s] there is no escaping or protection).
unit [Language.Construct.Magic]
usage [EDSL.Command_line.Arg]

V
variable [Common.Unique_name]

W
with_buffer [Common]
with_failwith [EDSL]
with_failwith f uses ! and EDSL.with_signal to call f with a function that exits the flow of execution and displays ~message and returns ~return (a bit like Pervasives.failwith).
with_redirections [EDSL]
Run a unit t expression after applying a list of file-descriptor redirections.
with_redirections [Language.Construct]
with_signal [EDSL]
Use a UNIX signal (default "USR2") to create a “jump.”
with_signal [Language.Construct]
with_trap [Language]
write_output [EDSL]
Redirect selected streams or the return value to files (stdout, stderr, return_value are paths).
write_output [Language.Construct]
write_stdout [EDSL]
write_stdout ~path expr is write_output expr ~stdout:path.
write_stdout [Language.Construct]

X
x [Common.Unique_name]