A parser designed to parse extremely simple boolean logic expressions. Expressions may contain boolean literals, C style identifiers (which represent runtime booleans), and a few boolean logic operators.
Some example expressions:
truea | ba & (b | c)a & !(b | c)!a & !b & !c
It is implemented in Nom using the following grammar as a reference (whitespace not included for clarity):