Commit 42be57b
committed
fix: for loop must access expression via value stack
The compilation of for loop statements was accessing the expression
that evaluates what collection it will iterate over via a recursive
call to the compiler, and that only worked for other cases by luck.
In order to test this feature, I've added a new filter: `sort`, it
doesn't take any arguments for now but could be a bit more flexible.
Refs: #111 parent a044918 commit 42be57b
2 files changed
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
765 | | - | |
| 765 | + | |
766 | 766 | | |
| 767 | + | |
767 | 768 | | |
768 | 769 | | |
769 | | - | |
770 | | - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
771 | 788 | | |
772 | 789 | | |
773 | 790 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1238 | 1238 | | |
1239 | 1239 | | |
1240 | 1240 | | |
| 1241 | + | |
1241 | 1242 | | |
1242 | 1243 | | |
1243 | 1244 | | |
| |||
1598 | 1599 | | |
1599 | 1600 | | |
1600 | 1601 | | |
1601 | | - | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
1602 | 1605 | | |
1603 | 1606 | | |
1604 | 1607 | | |
| |||
1808 | 1811 | | |
1809 | 1812 | | |
1810 | 1813 | | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
1811 | 1817 | | |
1812 | 1818 | | |
1813 | 1819 | | |
| |||
0 commit comments