!if $3 !1 !then true !else false !ifend.
!ENDDEFINE.
-* This is ((not A) and B) or C.
+* These are:
+ ((not A) and B) or C
+ not (A and B) or C
+ not A and (B or C)
DEFINE !test_prec(!pos !tokens(1)/!pos !tokens(1)/!pos !tokens(1))
!if $3 !1 $1 !2 $2 !3 !then true !else false !ifend
+!if $3 (!1 $1 !2) $2 !3 !then true !else false !ifend
+!if $3 !1 $1 (!2 $2 !3) !then true !else false !ifend
!ENDDEFINE.
DEBUG EXPAND.
false.
-false
-true
-true
-true
+false true false
+true true true
+true true true
+true true true
-false
-true
-false
-true
+false true false
+true true false
+false false false
+true true false
])
done
AT_CLEANUP