B | |
bindings [Carcass.Body] | bindings b are the uninterpreted path bindings found in b .
|
bool [Carcass.Ask] | bool asks for a boolean value.
|
builtins [Carcass.Flesh] | builtins are the built-in variable definitions.
|
C | |
compare [Carcass.Pat] | compare p p' is Pervasives.compare p p' .
|
content [Carcass.Bone] | content b is the bone's content.
|
D | |
doc [Carcass.Body] | doc b is the synopsis and documentation of b .
|
dom [Carcass.Pat] | dom p is the set of variable references in p .
|
E | |
empty [Carcass.Pat] | empty is an empty builtin pattern.
|
env [Carcass_cli] | env () is a Cmdliner term that has all the options to setup a
carcass environment.
|
env [Carcass.Pat] | env ~undef m is an evaluation environment in which variables are
defined according to the map m .
|
env_var_value [Carcass.Pat] | env_var_value env var is value of variable var in env , if
defined.
|
env_with_cli_flesh [Carcass_cli] | env_with_cli_flesh ~pos is like Carcass_cli.env but also defines flesh as
positional command line arguments starting at pos .
|
equal [Carcass.Pat] | equal p p' is p = p' .
|
etc_dir [Carcass.Env] | etc_dir is the path to the install's etc directory.
|
eval [Carcass.Bone] | eval env b evaluates b to a string in the pattern evaluation
environment env .
|
eval [Carcass.Pat] | eval env pat is the evaluation of pattern pat
in environment env .
|
eval_bones [Carcass.Body] | eval_bones env penv m evaluates all the bone ids in the
path map m to their content and executable status using env to
look them up and penv to evaluate textual bones.
|
eval_paths [Carcass.Body] | eval_paths env penv id b evaluates all the paths of bone b 's
bindings and maps them to their bone id using env to lookup
sub-bodies and penv to evaluate the path patterns.
|
F | |
find [Carcass.Body] | find env id finds the full path to the bone identified by id
in environment env .
|
find [Carcass.Bone] | find env id finds the full path to the bone identified by id
in environment env .
|
for_builtin [Carcass.Loc] | for_builtin s is a builtin location for string s .
|
for_cli [Carcass.Loc] | for_cli s is a cli location for string s .
|
for_path [Carcass.Loc] | |
I | |
id [Carcass.Body] | id b is the body's id.
|
id [Carcass.Bone] | id b is the bone's id.
|
is_exec [Carcass.Bone] | is_exec b is true if the bone is executable.
|
L | |
list [Carcass.Body] | list ~hidden env maps body ids found in the environment env to
their path .
|
list [Carcass.Bone] | list ~hidden env maps bone identifiers found in the environment env
to their path .
|
N | |
nil [Carcass.Loc] | nil is an invalid builtin location.
|
nil_pos [Carcass.Loc] | nil_pos is an invalid position.
|
nil_range [Carcass.Loc] | nil_range is an invalid range.
|
nil_trace [Carcass.Loc] | nil is an empty trace.
|
O | |
of_env [Carcass.Flesh] | of_env init env are the variable bindings available in
environment env added to init (defaults to Carcass.Flesh.builtins ).
|
of_input [Carcass.Body] | of_input ~src input id reads a body with id id from input .
|
of_input [Carcass.Bone] | of_input ~src input is_exec id reads a bone with id id from
input .
|
of_input [Carcass.Flesh] | of_input ~init ~src input reads flesh variable bindings from input
and adds them to init (defaults to Carcass.Flesh.builtins ).
|
of_input [Carcass.Pat] | of_input ~flesh ~src i considers i as a single atom and
returns its pattern.
|
of_path [Carcass.Body] | |
of_path [Carcass.Bone] | |
P | |
pattern [Carcass.Ask] | pattern asks for a pattern.
|
pp [Carcass.Flesh] | pp formats flesh as valid carcass flesh syntax.
|
pp [Carcass.Pat] | pp formats patterns verbatim like Carcass.Pat.to_string .
|
pp [Carcass.Loc] | pp formats locations according to
GNU
conventions.
|
pp_def [Carcass.Flesh] | pp_def formats a pattern like a flesh variable definition.
|
pp_eval [Carcass.Error] | pp_eval is a formatter for evaluation errors.
|
pp_eval_err [Carcass.Error] | pp_eval_err is a formatter for evaluation error cases.
|
pp_eval_id [Carcass.Error] | pp_eval_def is a formatter for evaluated identifiers.
|
pp_parse [Carcass.Error] | pp_parse is a formatter for parse errors.
|
pp_parse_err [Carcass.Error] | pp_parse_err is a formatter for parse error cases.
|
pp_trace [Carcass.Loc] | pp_trace formats traces using Carcass.Loc.pp .
|
pp_transform [Carcass.Pat] | pp_transform is a pretty printer for transforms.
|
Q | |
query [Carcass.Pat] | query ~init p s returns an environment mapping each pattern variable
of p to its matched part in s , if s matches p .
|
S | |
string [Carcass.Ask] | string asks for a string value.
|
subst [Carcass.Pat] | subst defs p substitutes variables in p by the value they map
to in defs .
|
T | |
to_string [Carcass.Pat] | to_string ~flesh p converts p to a string according the carcass
syntax for variable references.
|
transform_of_string [Carcass.Pat] | transform_of_string s parses a transform from s .
|
transform_to_string [Carcass.Pat] | transform_of_string t parses a transform from s .
|
U | |
user_dir [Carcass.Env] | user_dir is the path to the user's carcass directory.
|
V | |
v [Carcass.Env] | v ~no_user_dir ~no_dot_dirs ~dirs ~flesh ~cli is an environment such
that looks up are done, in order:
For flesh, first in cli , followed by flesh files (starting from
the last one), followed by files d/flesh with d in dirs
(starting from the last one)., For bones and bodies, first in directory dirs (starting from
the last one), then in .carcass directories from current
directory up to root (except if no_dot_dirs is true ), then
in ~/.carcass (except if no_user_dir is true ).
|
value [Carcass.Ask] | value ~parse asks for a value parsed according to parse .
|
var_docs [Carcass.Body] | var_docs b maps a selection of variables to a documentation
string.
|
W | |
write [Carcass.Body] | write ~log ~over ~dst m writes the paths defined in m (creating
directories if needed) relative to dst according to the
content they map to and setting the executable bit according to
the boolean.
|
Z | |
zero_pos [Carcass.Loc] | zero_pos is (1,0) .
|
zero_range [Carcass.Loc] | zero_range is (zero_pos, zero_pos) .
|