synthpic2.recipe.process_conditions.boolean_expression_parsing
¶
Module for parsing of boolean expressions as strings.
Based on: https://github.com/pyparsing/pyparsing/blob/master/examples/simpleBool.py
Module Contents¶
Classes¶
Class to parse boolean operands. |
|
Class to parse not. |
|
Base class to parse binary operations. |
|
Base class to parse binary operations. |
|
Base class to parse binary operations. |
Functions¶
|
Attributes¶
- class synthpic2.recipe.process_conditions.boolean_expression_parsing.BoolOperand(t: pyparsing.ParseResults)¶
Class to parse boolean operands.
- __repr__¶
- __bool__() bool ¶
- __str__() str ¶
Return str(self).
- class synthpic2.recipe.process_conditions.boolean_expression_parsing.BoolNot(t: pyparsing.ParseResults)¶
Class to parse not.
- __repr__¶
- __bool__() bool ¶
- __str__() str ¶
Return str(self).
- class synthpic2.recipe.process_conditions.boolean_expression_parsing.BoolBinOp(t: pyparsing.ParseResults)¶
Base class to parse binary operations.
- repr_symbol: str = ''¶
- eval_fn: Callable[[Iterable[bool]], bool]¶
- __str__() str ¶
Return str(self).
- __bool__() bool ¶
- class synthpic2.recipe.process_conditions.boolean_expression_parsing.BoolAnd(t: pyparsing.ParseResults)¶
Bases:
BoolBinOp
Base class to parse binary operations.
- repr_symbol = '&'¶
- eval_fn¶
- class synthpic2.recipe.process_conditions.boolean_expression_parsing.BoolOr(t: pyparsing.ParseResults)¶
Bases:
BoolBinOp
Base class to parse binary operations.
- repr_symbol = '|'¶
- eval_fn¶
- synthpic2.recipe.process_conditions.boolean_expression_parsing.TRUE¶
- synthpic2.recipe.process_conditions.boolean_expression_parsing.FALSE¶
- synthpic2.recipe.process_conditions.boolean_expression_parsing.NOT¶
- synthpic2.recipe.process_conditions.boolean_expression_parsing.AND¶
- synthpic2.recipe.process_conditions.boolean_expression_parsing.OR¶
- synthpic2.recipe.process_conditions.boolean_expression_parsing.boolOperand¶
- synthpic2.recipe.process_conditions.boolean_expression_parsing.boolExpr¶
- synthpic2.recipe.process_conditions.boolean_expression_parsing.parse_boolean_string(string: str) bool ¶