fixed bug in grammar that was preventing 'not' from being evaluated as a
boolean operator when appearing after '('