Skip to content

Commit 49d4f25

Browse files
committed
fix x86 Name => Variable
1 parent a7ebbd8 commit 49d4f25

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

book.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3728,7 +3728,7 @@ \section{Select Instructions}
37283728
In the \code{select\_instructions} pass we begin the work of
37293729
translating \racket{from \LangCVar{}} to \LangXVar{}. The target
37303730
language of this pass is a variant of x86 that still uses variables,
3731-
so we add an AST node of the form $\VAR{\itm{var}}$ to the \Arg{}
3731+
so we add an AST node of the form $\XVAR{\itm{var}}$ to the \Arg{}
37323732
nonterminal of the \LangXInt{} abstract syntax
37333733
(figure~\ref{fig:x86-int-ast}).
37343734
\racket{We recommend implementing the

defs.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@
374374
\newcommand{\SEQ}[2]{\key{(Seq}~#1~#2\key{)}}
375375

376376
\if\edition\racketEd
377+
\newcommand{\XVAR}[1]{\key{(Var}~#1\key{)}}
377378
\newcommand{\CGDEF}[4]{\LP\key{define}~\LP#1~#2\RP\,#3~#4\RP}
378379
\newcommand{\IMM}[1]{\key{(Imm}~#1\key{)}}
379380
\newcommand{\REG}[1]{\key{(Reg}~#1\key{)}}
@@ -396,6 +397,7 @@
396397
\newcommand{\INST}[3]{\LP\key{Inst}~#1~#2~#3\RP}
397398
\fi
398399
\if\edition\pythonEd
400+
\newcommand{\XVAR}[1]{\key{Variable}\LP #1 \RP}
399401
\newcommand{\CGDEF}[4]{\key{def}~#1\LP #2 \RP~#3 \code{:}~#4}
400402
\newcommand{\TAILJMP}[2]{\key{TailJmp}\LP#1\code{, }#2\RP}
401403
\newcommand{\INDCALLQ}[2]{\key{IndirectCallq}\LP#1\code{, }#2\RP}

0 commit comments

Comments
 (0)