From 835d0a9d4eab26d11a36cdd60420e8bc30de672d Mon Sep 17 00:00:00 2001
From: Robert Nystrom
Our first step towards supporting inheritance in Lox is a way to specify a superclass when declaring a class. There’s a lot of variety in syntax for this. @@ -895,8 +894,7 @@
We did all of that from scratch, with no external dependencies or magic tools. Just you and I, our respective text editors, a couple of collection classes in diff --git a/site/introduction.html b/site/introduction.html index cc1dc952..ada1e590 100644 --- a/site/introduction.html +++ b/site/introduction.html @@ -257,8 +257,7 @@
Yacc wasn’t the first of its ilk, which is why it’s named “Yacc”—Yet Another Compiler-Compiler. A later similar tool is Bison, named as a pun on -the pronunciation of Yacc like “yak”.
- +the pronunciation of Yacc like “yak”.If you find all of these little self-references and puns charming and fun, you’ll fit right in here. If not, well, maybe the language nerd sense of humor is an acquired taste.
@@ -385,8 +384,7 @@And, finally, Java is hugely popular. That means there’s a good chance you already know it, so there’s less for you to learn to get going in the book. If diff --git a/site/parsing-expressions.html b/site/parsing-expressions.html index e47f0b7b..51cba5a2 100644 --- a/site/parsing-expressions.html +++ b/site/parsing-expressions.html @@ -425,8 +425,7 @@
CS people really need to get together and straighten out their metaphors. Don’t even get me started on which direction the stack is supposed to grow.
@@ -818,8 +817,7 @@You know you want to push it.
- +You know you want to push it.
Of all the recovery techniques devised in yesteryear, the one that best stood
the test of time is called—somewhat alarmingly—“panic
diff --git a/site/style.css b/site/style.css
index cfd42e26..0fda53bc 100644
--- a/site/style.css
+++ b/site/style.css
@@ -768,7 +768,8 @@ aside {
aside p {
margin: 20px 0;
}
-aside p:first-child {
+aside p:first-child,
+aside img:first-child {
margin-top: 4px;
}
aside p:last-child {
diff --git a/site/types-of-values.html b/site/types-of-values.html
index 35dbc4a7..d7eba09a 100644
--- a/site/types-of-values.html
+++ b/site/types-of-values.html
@@ -335,8 +335,7 @@ 18&
type. Any time we call one of the
AS_
macros, we need to guard it behind a
call to one of these first. With these eight macros, we can now safely shuttle
data between Lox’s dynamic world and C’s static one.
The _VAL
macros lift a C value into the heavens. The AS_
macros bring it
back down.