mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Add missing docs about not-expression condition syntax
This commit is contained in:
@@ -15,6 +15,7 @@ Added
|
||||
- The top-level ``prelude`` key can be used to supply common data structure
|
||||
definitions, and in masterlists its value is replaced by the contents of the
|
||||
masterlist prelude file, if present.
|
||||
- Support for parsing inverted metadata conditions (``not (<expression>)``).
|
||||
|
||||
Changed
|
||||
-------
|
||||
|
||||
@@ -7,8 +7,9 @@ Condition strings can be used to ensure that data is only acted on by LOOT under
|
||||
Omitting optional parentheses (see below), their `EBNF`_ grammar is:
|
||||
|
||||
.. productionlist::
|
||||
compound_condition: condition, { ( logical_and | logical_or ), condition }
|
||||
condition: [ logical_not ], function
|
||||
expression: condition, { logical_or, compound_condition }
|
||||
compound_condition: condition, { logical_and, condition }
|
||||
condition: ( [ logical_not ], function ) | ( [ logical_not ], "(", expression, ")" )
|
||||
logical_and: "and"
|
||||
logical_or: "or"
|
||||
logical_not: "not"
|
||||
|
||||
Reference in New Issue
Block a user