Commit graph

11 commits

Author SHA1 Message Date
Eli Bendersky
54d82e9f37 Update to work with latest llvmlite, which needs LLVM 3.6 2015-07-15 05:48:21 -07:00
Eli Bendersky
7c7d2bc8e9 More cleanup + completeness mention in the README 2015-02-04 16:23:54 -08:00
Eli Bendersky
b65b1c0c73 Changed API of Parser in all chapters to be consistent with the new one in 6 2015-01-31 13:02:59 -08:00
Eli Bendersky
269803e7a6 Adding tests 2015-01-31 07:49:03 -08:00
Eli Bendersky
bd02b838d3 _add_builtins to implement putchard() for the evaluator 2015-01-30 10:59:58 -08:00
Eli Bendersky
29ebf869cb Codegen for 'for' seems to be working
Better testing will be available when mutable variables are introduced.
2015-01-30 06:33:35 -08:00
Eli Bendersky
0b061cbfd7 Parsing 'for' starting to work 2015-01-30 05:41:04 -08:00
Eli Bendersky
bf36953946 Added the ._match primitive to the parser to factor out common code.
Also, getting started on parsing 'for'
2015-01-30 05:26:20 -08:00
Eli Bendersky
a53b671201 IfExpr codegen working 2015-01-29 20:01:16 -08:00
Eli Bendersky
a1241876ba Working on codegen for if nodes.
Need to motify the way BBs are created. I should create them with Block() and
only later insert them into the function with f.basic_blocks.append...

This ensures properly nested creation of BBs in case of nested conditionals,
the way it's done in the C++ code.
2015-01-29 09:54:22 -08:00
Eli Bendersky
cfc89428ef Getting started on Chapter 5: parsing of ifexpr works 2015-01-29 09:18:38 -08:00