Add macro support
[normand.git] / tests / pass-readme-learn-macro-exp-2.nt
1 !macro A(val, is_be)
2 {le}
3
4 !if is_be
5 {be}
6 !end
7
8 {val : 16}
9 !end
10
11 !macro B(rep, is_be)
12 {iter = 1}
13
14 !repeat rep
15 m:A({iter * 3}, is_be)
16 {iter = iter + 1}
17 !end
18 !end
19
20 m:B(5, 1)
21 m:B(3, 0)
22 ---
23 00 03 00 06 00 09 00 0c 00 0f 03 00 06 00 09 00
This page took 0.037677 seconds and 4 git commands to generate.