Skip to content

Commit add4fab

Browse files
committed
change grammar for residual to force constant propagation
1 parent a49b792 commit add4fab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4206,10 +4206,10 @@ \section{Challenge: Partial Evaluator for \LangVar{}}
42064206
\MID \LP\key{-} ~\Var\RP
42074207
\MID \LP\key{-} ~\LP\key{read}\RP\RP
42084208
\MID \LP\key{+} ~ \itm{inert} ~ \itm{inert}\RP\\
4209-
&\MID& \LP\key{let}~\LP\LS\Var~\itm{residual}\RS\RP~ \itm{residual} \RP \\
4210-
\itm{residual} &::=& \Int
4211-
\MID \LP\key{+}~ \Int~ \itm{inert}\RP
4212-
\MID \itm{inert}
4209+
&\MID& \LP\key{let}~\LP\LS\Var~\itm{rhs}\RS\RP~ \itm{residual} \RP \\
4210+
\itm{rhs} &::=& \LP\key{+}~ \Int~ \itm{inert}\RP
4211+
\MID \itm{inert} \\
4212+
\itm{residual} &::=& \Int \MID \itm{rhs}
42134213
\end{array}
42144214
\]
42154215
\fi}

0 commit comments

Comments
 (0)