mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Check in part 2: parser and ast.
llvm-svn: 43218
This commit is contained in:
parent
2c7fdb6067
commit
18c6e1e961
@ -56,7 +56,7 @@ which looks like this:</p>
|
||||
<pre>
|
||||
# Compute the x'th fibonacci number.
|
||||
def fib(x)
|
||||
if x < 3 then
|
||||
if x < 3 then
|
||||
1
|
||||
else
|
||||
fib(x-1)+fib(x-2)
|
||||
@ -241,8 +241,8 @@ this code:</p>
|
||||
|
||||
<p>With this, we have the complete lexer for the basic Kaleidoscope language.
|
||||
Next we'll <a href="LangImpl2.html">build a simple parser that uses this to
|
||||
build an Abstract Syntax Tree</a>. If you prefer, you can jump to the <a
|
||||
href="index.html">main tutorial index page</a>.
|
||||
build an Abstract Syntax Tree</a>. When we have that, we'll include a driver
|
||||
so that you can use the lexer and parser together.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
1177
docs/tutorial/LangImpl2.html
Normal file
1177
docs/tutorial/LangImpl2.html
Normal file
File diff suppressed because it is too large
Load Diff
@ -28,7 +28,7 @@
|
||||
<li>Implementing a language with LLVM: Kaleidoscope
|
||||
<ol>
|
||||
<li><a href="LangImpl1.html">The basic language, with its lexer</a></li>
|
||||
<li>Implementing a Parser and AST</li>
|
||||
<li><a href="LangImpl2.html">Implementing a Parser and AST</a></li>
|
||||
<li>Implementing code generation to LLVM IR</li>
|
||||
<li>Adding JIT codegen support</li>
|
||||
<li>Extending the language: if/then/else</li>
|
||||
|
Loading…
Reference in New Issue
Block a user