Skip to content

Commit

Permalink
fix issue #182
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiek committed Oct 10, 2024
1 parent 5a7cb26 commit 9c93bcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions book.tex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

\def\racketEd{0}
\def\pythonEd{1}
\def\edition{0}
\def\edition{1}

% material that is specific to the Racket edition of the book
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
Expand Down Expand Up @@ -8535,7 +8535,7 @@ \section{The \LangCIf{} Intermediate Language}
\begin{array}{lcl}
\Atm &::=& \BOOL{\itm{bool}} \\
\itm{cmp} &::= & \code{eq?} \MID \code{<} \MID \code{<=} \MID \code{>} \MID \code{>=} \\
\Exp &::= & \UNIOP{\key{'not}}{\Atm} \MID \BINOP{\key{'}\itm{cmp}}{\Atm}{\Atm} \\
\Exp &::= & \UNIOP{\key{\textquotesingle not}}{\Atm} \MID \BINOP{\key{\textquotesingle}\itm{cmp}}{\Atm}{\Atm} \\
\Tail &::= & \GOTO{\itm{label}} \\
&\MID& \IFSTMT{\BINOP{\itm{cmp}}{\Atm}{\Atm}}{\GOTO{\itm{label}}}{\GOTO{\itm{label}}}
\end{array}
Expand Down Expand Up @@ -8965,7 +8965,7 @@ \section{Remove Complex Operands}
\newcommand{\LifMonadASTRacket}{
\begin{array}{rcl}
\Atm &::=& \BOOL{\itm{bool}}\\
\Exp &::=& \UNIOP{\key{not}}{\Atm}
\Exp &::=& \UNIOP{\key{\textquotesingle not}}{\Atm}
\MID \BINOP{\itm{cmp}}{\Atm}{\Atm}
\MID \IF{\Exp}{\Exp}{\Exp}
\end{array}
Expand Down Expand Up @@ -9896,7 +9896,7 @@ \section{Select Instructions}
be the translation of $\Atm_1$ to x86 and likewise for $\Arg_2$.\\
\begin{tabular}{lll}
\begin{minipage}{0.4\textwidth}
$\CASSIGN{\Var}{ \LP\CEQ{\Atm_1}{\Atm_2} \RP }$
$\CASSIGN{\Var}{ \CEQ{\Atm_1}{\Atm_2} }$
\end{minipage}
&
$\Rightarrow$
Expand Down
2 changes: 1 addition & 1 deletion defs.tex
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
\newcommand{\CBINOP}[3]{#2~#1~#3}
\newcommand{\EQNAME}{\key{Eq}}
\newcommand{\NOTEQNAME}{\key{NotEq}}
\newcommand{\CEQ}[2]{#1~\code{==}~#2}
\newcommand{\CEQ}[2]{\LP #1~\code{==}~#2 \RP}
\newcommand{\CIS}[2]{#1~\code{is}~#2}
\newcommand{\CGET}[2]{#1 \LS #2 \RS}
\newcommand{\GET}[2]{\key{Subscript}\LP #1 \code{,} #2 \code{,} \code{Load()} \RP}
Expand Down

0 comments on commit 9c93bcd

Please sign in to comment.