Efficient evaluation of Boolean expressions

An algorithm for the generation of an optimal code applicable to a parsed Boolean expression is presented. The algorithm generates the code during parsing itself.