Skip to content

Commit 70e45b3

Browse files
authored
Merge pull request #154 from andportnoy/master
Minor typo and formatting fixes
2 parents 713aabd + 08209bb commit 70e45b3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

book.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ \chapter{Preliminaries}
560560
chapter~\ref{ch:parsing}}.
561561
\racket{This book does not cover the theory and implementation of parsing.
562562
We refer the readers interested in parsing to the thorough treatment
563-
of parsing by \citet{Aho:2006wb}.}%
563+
of parsing by \citet{Aho:2006wb}. }%
564564
%
565565
\racket{A parser is provided in the support code for translating from
566566
concrete to abstract syntax.}%
@@ -995,7 +995,7 @@ \section{Grammars}
995995

996996
The concrete syntax for \LangInt{} is shown in
997997
figure~\ref{fig:r0-concrete-syntax} and the abstract syntax for
998-
\LangInt{} is shown in figure~\ref{fig:r0-syntax}.%
998+
\LangInt{} is shown in figure~\ref{fig:r0-syntax}. %
999999
%
10001000
\racket{The \code{read-program} function provided in
10011001
\code{utilities.rkt} of the support code reads a program from a file
@@ -1450,7 +1450,7 @@ \section{Interpreters}
14501450
[(Prim 'read '())
14511451
(define r (read))
14521452
(cond [(fixnum? r) r]
1453-
[else (error 'interp_exp "read expected an integer" r)])]
1453+
[else (error 'interp_exp "read expected an integer: ~v" r)])]
14541454
[(Prim '- (list e))
14551455
(define v (interp_exp e))
14561456
(fx- 0 v)]
@@ -2975,7 +2975,7 @@ \section{Planning the Trip to x86}
29752975
confuse variables with the same name.}
29762976
%
29772977
\racket{We place \key{remove\_complex\_operands} before \key{explicate\_control}
2978-
because the later removes the \key{let} form, but it is convenient to
2978+
because the latter removes the \key{let} form, but it is convenient to
29792979
use \key{let} in the output of \key{remove\_complex\_operands}.}
29802980
%
29812981
\racket{The ordering of \key{uniquify} with respect to

0 commit comments

Comments
 (0)