Pattern guards for functions and switch statements #830

Merged
ghallak merged 23 commits from ghallak/232 into master 2021-10-20 17:04:01 +09:00

23 Commits

Author SHA1 Message Date
Gaith Hallak
8f54fe4fac Revert "Disable aevm related tests"
This reverts commit e828099bd97dffe11438f2e48f3a92ce3641e85b.
2021-10-19 11:06:35 +03:00
Gaith Hallak
a715cccd03 Compile to icode when no guards are used 2021-10-19 11:06:35 +03:00
Gaith Hallak
6fa6dfbbc0 Fix docs 2021-10-19 11:06:35 +03:00
Gaith Hallak
303ca21317 Fix incomplete patterns bug 2021-10-19 11:06:35 +03:00
Gaith Hallak
1653a1ff1d Desugar clauses with guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
2d8db5f4ce Add test for non-boolean guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
2a15626c3c Change tests to include multiple guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
06118542f2 Fix pretty printing 2021-10-19 11:06:35 +03:00
Gaith Hallak
c30201cdba Implement multiple exprs in the same guard 2021-10-19 11:06:35 +03:00
Gaith Hallak
c6acb94921 Fix type in docs 2021-10-19 11:06:35 +03:00
Gaith Hallak
751fd2e15b Split the sentence before if and otherwise 2021-10-19 11:06:35 +03:00
Gaith Hallak
878f18e9eb Disable aevm related tests 2021-10-19 11:06:35 +03:00
Gaith Hallak
0d81af771e Fix tests 2021-10-19 11:06:35 +03:00
Gaith Hallak
842e39d09d Implement multiple guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
36fa3d1d2b Add failing test for stateful pattern guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
15ddec00bd Elaborate on guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
eadd00cc4d Remove stateful context from Env for guards 2021-10-19 11:06:35 +03:00
Gaith Hallak
ac7a3f98ab Update CHANGELOG.md 2021-10-19 11:06:35 +03:00
Gaith Hallak
059059ac87 Update docs 2021-10-19 11:04:25 +03:00
Gaith Hallak
74e8064a1b Add test for patterns guards 2021-10-19 11:04:25 +03:00
Gaith Hallak
4bfae33945 Add functions guards 2021-10-19 11:04:25 +03:00
Gaith Hallak
f437ee564e Add pattern guards to infer types and fcode generation 2021-10-19 11:04:25 +03:00
Gaith Hallak
9e85658ca4 Add case guards to parser 2021-10-19 11:04:25 +03:00