Parentheses in Boolean expressions



On 2013-09-30, Stavros Macrakis <macrakis at alum.mit.edu> wrote:

> Things like (a and b or c and (d or e) or (c or e) and f) make my head
> hurt.  I'd prefer to see things like this:
>
>    (a and b) or c  ...prints as...  (a and b) or c
>    a and (b or c)  ...prints as... a and (b or c)

Well, the 2-d pretty printer already puts in extra parentheses as you
suggest. I see that 'grind' doesn't, and 'tex' doesn't either.
It's OK with me if we change 'grind' and 'tex' to put in the extra
parentheses too. I don't know an easy way (e.g. via display properties)
to do it; I suppose it must involve Lisp hacking.

best

Robert Dodier