Jeremy Siek 9 年之前
父节点
当前提交
50fde6810b
共有 1 个文件被更改,包括 39 次插入1 次删除
  1. 39 1
      book.tex

+ 39 - 1
book.tex

@@ -131,6 +131,8 @@ Need to give thanks to
 %``This is a quote and I don't know who said this.''
 %``This is a quote and I don't know who said this.''
 %\end{chapquote}
 %\end{chapquote}
 
 
+\section{The $S_0$ Language}
+
 The $S_0$ language includes integers, operations on integers,
 The $S_0$ language includes integers, operations on integers,
 (arithmetic and input), and variable definitions.  The syntax of the
 (arithmetic and input), and variable definitions.  The syntax of the
 $S_0$ language is defined by the grammar in
 $S_0$ language is defined by the grammar in
@@ -148,7 +150,7 @@ a few small helper functions that together span 256 lines of code.
 \[
 \[
 \begin{array}{lcl}
 \begin{array}{lcl}
   \Op  &::=& \key{+} \mid \key{-} \mid \key{*} \mid \key{read} \\
   \Op  &::=& \key{+} \mid \key{-} \mid \key{*} \mid \key{read} \\
-  \Exp &::=& \Int \mid (\Op \; \Exp^{+}) \mid \Var \mid \LET{\Var}{\Exp}{\Exp}
+  \Exp &::=& \Int \mid (\Op \; \Exp^{*}) \mid \Var \mid \LET{\Var}{\Exp}{\Exp}
 \end{array}
 \end{array}
 \]
 \]
 \end{minipage}
 \end{minipage}
@@ -526,6 +528,42 @@ when it gets to a variable reference, so we add another paramter to
 \label{ch:register-allocation}
 \label{ch:register-allocation}
 
 
 
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Booleans, Conditions, and Type Checking}
+\label{ch:bool-types}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Tuples and Heap Allocation}
+\label{ch:tuples}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Functions}
+\label{ch:functions}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Lexically Scoped Functions}
+\label{ch:lambdas}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{The Dynamic Type}
+\label{ch:type-dynamic}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Mutable Lists}
+\label{ch:mutable-lists}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Parametric Polymorphism}
+\label{ch:parametric-polymorphism}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{High-level Optimization}
+\label{ch:high-level-optimization}
+
 
 
 \bibliographystyle{plainnat}
 \bibliographystyle{plainnat}
 \bibliography{all}
 \bibliography{all}