From: Luke Lau Date: Fri, 8 Nov 2019 15:07:55 +0000 (+0000) Subject: Add control flow X-Git-Url: http://git.lukelau.me/?p=kaleidoscope-hs.git;a=commitdiff_plain;h=f7ddcab1610d50be8e9e286554cd5a8e40f54afa Add control flow So far our language can parse and evaluate floating point expressions. However each expression and it's subexpressions always gets evaluated. To do more complex computations, we want to be able to control what gets evaluated and what doesn't. This is known as control flow, and the two most famous imperative constructs are probably the if statement and for loop. We will add them to our language in this chapter, and finally put our boolean expressions (42 < i) to good use. ---