Opened 12 years ago

Closed 12 years ago

#73 closed enhancement (fixed)

kmk: Add generic loop functions $(for ) and $(while ).

Reported by: bird Owned by: bird
Priority: major Milestone: 0.1.5
Component: kmk Version: 0.1.4
Keywords: Cc:


$(for init,condition,next,body) The init part is evaluate up front (no extra expansion). The condition part is a kmk-expression and is evaluate before each iteration. The body is expanded and added to the output, the output from each iteration is separated by a space. The next part is evaluated at the end of each iteration (no extra expansion).

$(while condition,body - Similar to $(for ) with empty init and next.

Change History (1)

comment:1 Changed 12 years ago by bird

Resolution: fixed
Status: newclosed

(In [2161]) kmk: Implemented $(for ) and $(while ) loops (C-style). Fixes #73.

Note: See TracTickets for help on using tickets.