ForExpr
From Erights
(Difference between revisions)
(→Tests) |
(→Static constraints) |
||
Line 17: | Line 17: | ||
{{XXX|Define the expansion of ForExpr}} | {{XXX|Define the expansion of ForExpr}} | ||
- | + | Kudos! What a neat way of thnkiing about it. | |
- | + | ||
- | + | ||
- | + | ||
- | + |
Revision as of 13:22, 20 April 2011
ForExpr is a nonkernel node which executes code for each element in a collection or other object implementing iterate/1.
"for" (optKeyPattern "=>")? valuePattern "in" collection "{" body "}" ({optBreakCatch an EMatcher}: "catch" pattern "{" expr "}")?
XXX We need to formalize the grammar definitions used in our spec
Fields
- optKeyPattern :nullOk[Pattern]
- valuePattern :Pattern
- collection :nullOk[EExpr]
- body :EExpr
- optBreakCatch :nullOk[EMatcher]
Expansion
XXX Define the expansion of ForExpr
Kudos! What a neat way of thnkiing about it.