Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.
SECRET//ORCON//NOFORN
2.2.1 Operators
The Grasshopper Operators describe the logical methods that can be applied to
sets of child rules. This allows the rule writer to generate more complex rule sets
that allows for multiple scenarios, not just a simple set of true false statements.
Grasshopper currently supports two different operator formats based on the
number of child rules that can be applied. Descriptions of the two formats are
described in the sections below.
Standard Operators
The Grasshopper standard operators take in one or more child rules and always
result in a single return value that is a culmination of the child rule results
combined using a logical method. The operators support the possibility of a
“short circuit” situation where, based on a portion of the child rule results, the
return value for the operator can be established without evaluating any more
child rules. The format for a standard operator is shown below:
<operator> {
<child rule 1>
…
<child rule n>
}
A list of the current standard operators is provided in Operator Descriptions.
Unary Operators
The Grasshopper unary operators take in a single child rule and always result in
a single return value that applies a logical method to the result of the child rule.
These operators do not have the capability to short circuit due to having a single
child rule. The format for a unary operator is shown below:
<operator><child rule 1>
A list of the current unary operators is provided in Operator Descriptions.
23
SECRET//ORCON//NOFORN