Commit graph

8 commits

Author SHA1 Message Date
James Harton
b2b631a7c7 Reduce duplication in the IR builder and correctly handle clauses with multi-block CFGs. 2019-03-25 12:30:19 +13:00
James Harton
811776d9e7 Code gardening. 2019-03-23 09:36:45 +13:00
James Harton
20bb5314cc Track types for locals and properties. 2019-03-20 16:19:59 +13:00
James Harton
ee3df9a527 Ensure that if expressions parse and build correctly. 2019-03-18 20:20:39 +13:00
James Harton
536e5cc5f4 Code gardening. 2019-03-18 18:54:21 +13:00
James Harton
b0ab1a4717 Store blocks on the context and reference them.
Because we need to build a control-flow graph from all our blocks don't
store them haphazard all over the place but in a single blocks
collection on the context object.
2019-03-18 13:01:27 +13:00
James Harton
26ed1130e7 Use blocks rather than vecs or IR all over the place. 2019-03-18 08:53:47 +13:00
James Harton
30fdff315b Build IR 2019-03-17 18:54:35 +13:00