booleanGrammar function

A constant function with a boolean grammar.