move-language / move

Apache License 2.0
2.24k stars 677 forks source link

[model compiler] Introduce patterns and type check assign #1040

Closed wrwg closed 1 year ago

wrwg commented 1 year ago

This introduces the new type of patterns into the model. Patterns are like expressions but represent lvalues or matches. This is used to implement type checking of assignment. Lets also have been refactored to use patterns during checking, but this isn't yet pushed into the AST, which will be a larger breaking change.