Short Evaluation Using AST: Introduction
50/69
Example:
a
or
(
b
and
(
not
c
)):
or
and
not
a
c
b
X:
Y:
true
false
true
false
true
false
AST:
True:
False:
if
a
goto
True
goto
X
X
:
if
b
goto
Y
goto
False
Y
:
if
c
goto
False
goto
True
True
: …
False
: …