From d93a584eae90a854b24220afa2f1a3e5cce00251 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Oct 2007 05:43:01 +0000 Subject: [PATCH] Fix up a broken #include, move code to its own section, add conclusions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43239 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl2.html | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/docs/tutorial/LangImpl2.html b/docs/tutorial/LangImpl2.html index 1fdd442c651..510c9377e2e 100644 --- a/docs/tutorial/LangImpl2.html +++ b/docs/tutorial/LangImpl2.html @@ -753,20 +753,40 @@ $ +

There is a lot of room for extension here. You can define new AST nodes, +extend the language in many ways, etc. In the next +installment, we will describe how to generate LLVM IR from the AST.

+ + + + +
Full Code Listing
+ + +
+

-Here is the full code. Note that it is fully self-contained: you don't even -need LLVM for this. In the next installment, we -will describe how to generate LLVM IR from the AST.

+Here is the complete code listing for this and the previous chapter. +Note that it is fully self-contained: you don't need LLVM or any external +libraries at all for this (other than the C and C++ standard libraries of +course). To build this, just compile with:

-// To build this:
-//  g++ -g toy.cpp 
-//  ./a.out 
+   # Compile
+   g++ -g toy.cpp 
+   # Run
+   ./a.out 
+
+
+

Here is the code:

+ +
+
 #include <cstdio>
 #include <string>
-#include <
+#include <map>
 #include <vector>
 
 //===----------------------------------------------------------------------===//