...
- a boolean constant
true
andfalse
; - a symbol
S
representing a boolean variable; (make-Not X)
whereX
is aboolExp
;(make-And X Y) where X
andY
are {{boolExp
}} s;(make-Or X Y) where X
andY
are {{boolExp
}} s;(make-Implies X Y) where {{X
andY
are {{boolExp
}} s; or(make-If X Y Z)
whereX
,Y
, andZ
are {{boolExp
}} s.
A bool-SchemeExp is either:
- a boolean constant
true
orfalse
; - a symbol
S
; (list 'not X)
whereX
is abool-SchemeExp
;(list op X Y)
whereop
is'and
,'or
, or'implies
whereX
andY
are {{bool-SchemeExp
}} s;(list 'if X Y Z)
whereX
,Y
, andZ
are {{bool-SchemeExp
}} s.
The provided functions parse
and unparse
have the following signatures.
...