The Boolean expressions are employed in the following plugins:
Workcraft recognises the following fairly standard syntax for the Boolean expressions:
<expression> ::= <term> | <term> + <expression> | <term> ^ <expression> | <expression> => <expression> <term> ::= <factor> | <factor> * <term> <factor> ::= <literal> | <literal>' | (<expression>) | (<expression>)' <literal> ::= C_STYLE_NAME | 0 | 1
The following five Boolean operators are used in this grammar:
'
- Negation (NOT); alternatively prefix !
can be used, but it will be automatically replaced by suffix '
.=>
- implicationHere are few examples of good Boolean expressions:
a+b
(op1*op2)'
(A+B)' => C*(D^E')