This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,20 @@
Predicate Language
==================
The predicate language allows the user to define simple predicates
(Boolean-valued functions) that Dune can evaluate. Here is a semiformal
specification of the predicate language:
.. productionlist::
pred : (and `pred` `pred`)
: (or `pred` `pred`)
: (not `pred`)
: :standard
: `element`
The exact meaning of ``:standard`` and the nature of :token:`element` depend on
the context.
For example, in the case of the :doc:`/reference/dune/subdir`, an
:token:`element` corresponds to file glob patterns.
Another example is the user action :doc:`actions/with-accepted-exit-codes`,
where an :token:`element` corresponds to a literal integer.