|
@@ -7450,6 +7450,10 @@ R^{\mathsf{ANF}}_{\mathsf{if}} &::=& \PROGRAM{\code{()}}{\Exp}
|
|
{\if\edition\pythonEd
|
|
{\if\edition\pythonEd
|
|
\[
|
|
\[
|
|
\begin{array}{rcl}
|
|
\begin{array}{rcl}
|
|
|
|
+\itm{binop} &::=& \code{Add()} \MID \code{Sub()} \\
|
|
|
|
+\itm{cmp} &::= & \code{Eq()} \MID \code{NotEq()} \MID \code{Lt()} \MID \code{LtE()} \MID \code{Gt()} \MID \code{GtE()} \\
|
|
|
|
+\itm{uniop} &::=& \code{USub()} \MID \code{Not()} \\
|
|
|
|
+\itm{bool} &::=& \code{True} \MID \code{False} \\
|
|
\Atm &::=& \INT{\Int} \MID \VAR{\Var} \MID \BOOL{\itm{bool}}\\
|
|
\Atm &::=& \INT{\Int} \MID \VAR{\Var} \MID \BOOL{\itm{bool}}\\
|
|
\Exp &::=& \Atm \MID \READ{} \\
|
|
\Exp &::=& \Atm \MID \READ{} \\
|
|
&\MID& \BINOP{\itm{binop}}{\Atm}{\Atm} \MID \UNIOP{\key{uniop}}{\Atm} \\
|
|
&\MID& \BINOP{\itm{binop}}{\Atm}{\Atm} \MID \UNIOP{\key{uniop}}{\Atm} \\
|