Allow assigning patterns to variables #827

Merged
ghallak merged 10 commits from ghallak/231 into master 2021-09-11 23:18:30 +09:00

10 Commits

Author SHA1 Message Date
Gaith Hallak
34faf7bb57 Use Plus instead of Scoped 2021-09-07 17:54:00 +03:00
Gaith Hallak
9d200bc347 Add letpat to aeso_syntax_utils:fold 2021-09-07 17:54:00 +03:00
Gaith Hallak
27e2170545 Update docs and changelog 2021-09-07 17:54:00 +03:00
Gaith Hallak
0d6bcf688b Update CHANGELOG.md 2021-09-07 17:53:15 +03:00
Gaith Hallak
9540c7d200 Add tests 2021-09-07 17:52:47 +03:00
Gaith Hallak
8645aa586f Implement rename_spat for assign pattern 2021-09-07 17:52:12 +03:00
Gaith Hallak
90759ed738 Add fcode generation for assign pattern 2021-09-07 17:52:12 +03:00
Gaith Hallak
e9a210cb8d Use check_expr instead of hard-coded type 2021-09-07 17:52:12 +03:00
Gaith Hallak
7744c8c2a0 Add assign pattern to type inference 2021-09-07 17:52:12 +03:00
Gaith Hallak
eb5ef3a628 Change syntax tree and parser 2021-09-07 17:52:12 +03:00