summaryrefslogtreecommitdiff
path: root/chapter03
diff options
context:
space:
mode:
Diffstat (limited to 'chapter03')
-rw-r--r--chapter03/README.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/chapter03/README.md b/chapter03/README.md
index 3c5d7c3e..35075e7e 100644
--- a/chapter03/README.md
+++ b/chapter03/README.md
@@ -1,5 +1,16 @@
# Chapter 3: Variable Declarations
+# Table of Contents
+
+1. [Extensions to Intermediate Representation](#extensions-to-intermediate-representation)
+2. [Symbol Tables](#symbol-tables)
+3. [ScopeNode](#scopenode)
+4. [Demonstration](#demonstration)
+5. [Identification of Basic Blocks in SoN graph](#identification-of-basic-blocks-in-son-graph)
+6. [Enabling peephole optimizations](#enabling-peephole-optimizations)
+
+You can also read [this chapter](https://github.com/SeaOfNodes/Simple/tree/linear-chapter03) in a linear Git revision history on the [linear](https://github.com/SeaOfNodes/Simple/tree/linear) branch and [compare](https://github.com/SeaOfNodes/Simple/compare/linear-chapter02...linear-chapter03) it to the previous chapter.
+
In this chapter we extend the language grammar to allow variable declarations. This allows us to write:
```
@@ -15,7 +26,6 @@ return c;
Here is the [complete language grammar](docs/03-grammar.md) for this chapter.
-You can also read [this chapter](https://github.com/SeaOfNodes/Simple/tree/linear-chapter03) in a linear Git revision history on the [linear](https://github.com/SeaOfNodes/Simple/tree/linear) branch and [compare](https://github.com/SeaOfNodes/Simple/compare/linear-chapter02...linear-chapter03) it to the previous chapter.
## Extensions to Intermediate Representation