diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-05 19:06:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-05 19:06:59 +0000 |
commit | 128eb863dfb242aac982b505a9aab06dc35be8d1 (patch) | |
tree | b571b5ba6cdec361738bf2dc78b0b95210ec41bd /docs/tutorial/LangImpl5.html | |
parent | 8699a97a2ef42d349c9b81317d55ff621c459adc (diff) | |
download | external_llvm-128eb863dfb242aac982b505a9aab06dc35be8d1.zip external_llvm-128eb863dfb242aac982b505a9aab06dc35be8d1.tar.gz external_llvm-128eb863dfb242aac982b505a9aab06dc35be8d1.tar.bz2 |
add table of contents to each chapter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl5.html')
-rw-r--r-- | docs/tutorial/LangImpl5.html | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index 09477fa..a579758 100644 --- a/docs/tutorial/LangImpl5.html +++ b/docs/tutorial/LangImpl5.html @@ -13,18 +13,45 @@ <div class="doc_title">Kaleidoscope: Extending the Language: Control Flow</div> +<ul> +<li>Chapter 5 + <ol> + <li><a href="#intro">Chapter 5 Introduction</a></li> + <li><a href="#ifthen">If/Then/Else</a> + <ol> + <li><a href="#iflexer">Lexer Extensions</a></li> + <li><a href="#ifast">AST Extensions</a></li> + <li><a href="#ifparser">Parser Extensions</a></li> + <li><a href="#ifir">LLVM IR</a></li> + <li><a href="#ifcodegen">Code Generation</a></li> + </ol> + </li> + <li><a href="#for">'for' Loop Expression</a> + <ol> + <li><a href="#forlexer">Lexer Extensions</a></li> + <li><a href="#forast">AST Extensions</a></li> + <li><a href="#forparser">Parser Extensions</a></li> + <li><a href="#forir">LLVM IR</a></li> + <li><a href="#forcodegen">Code Generation</a></li> + </ol> + </li> + <li><a href="#code">Full Code Listing</a></li> + </ol> +</li> +</ul> + <div class="doc_author"> <p>Written by <a href="mailto:sabre@nondot.org">Chris Lattner</a></p> </div> <!-- *********************************************************************** --> -<div class="doc_section"><a name="intro">Part 5 Introduction</a></div> +<div class="doc_section"><a name="intro">Chapter 5 Introduction</a></div> <!-- *********************************************************************** --> <div class="doc_text"> -<p>Welcome to Part 5 of the "<a href="index.html">Implementing a language with -LLVM</a>" tutorial. Parts 1-4 described the implementation of the simple +<p>Welcome to Chapter 5 of the "<a href="index.html">Implementing a language +with LLVM</a>" tutorial. Parts 1-4 described the implementation of the simple Kaleidoscope language and included support for generating LLVM IR, following by optimizations and a JIT compiler. Unfortunately, as presented, Kaleidoscope is mostly useless: it has no control flow other than call and return. This means @@ -116,7 +143,7 @@ stuff:</p> <!-- ======================================================================= --> <div class="doc_subsubsection"><a name="ifast">AST Extensions for - If/Then/Else </a></div> + If/Then/Else</a></div> <!-- ======================================================================= --> <div class="doc_text"> @@ -142,7 +169,7 @@ public: <!-- ======================================================================= --> <div class="doc_subsubsection"><a name="ifparser">Parser Extensions for -If/Then/Else </a></div> +If/Then/Else</a></div> <!-- ======================================================================= --> <div class="doc_text"> |