Skip to content

← All updates

session

Update 7: Lowering the language

One large push took most of the surface language from “parses” to “runs”:

  • Arrays: literals, indexing, element assignment, compound assignment, and for loops over arrays.
  • match as an expression, with string, range, and enum-variant patterns.
  • Struct methods with SRET returns, tuples, enums with payloads, the ? operator, closures via lambda lifting, and defer blocks that run before every return.
  • Typed allocas throughout the lowerer, so loads now carry correct types instead of defaulting to i64.