adam-mcdaniel / sage

A programming language that's wise beyond its bytes!🌱🌿🪴
https://adam-mcdaniel.net/sage-website
MIT License
414 stars 15 forks source link

WIP: Coallesce LIR declaration types, and add pattern match let bindings. #55

Closed adam-mcdaniel closed 11 months ago

adam-mcdaniel commented 11 months ago

Take Expr::LetTypes, Expr::LetConsts, Expr::LetVars, Expr::LetStaticVars, etc. and encapsulate them all into Expr::Declare which takes a declaration. Declarations can be composed of multiple sub-declarations.