File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,10 @@ expansion like:
105
105
${count(x)} $( $x )*
106
106
```
107
107
108
- the expression ` ${count(x)} ` will expand to the number of times the ` $( $x )* `
109
- repetition will repeat.
108
+ the expression ` ${count(x)} ` will expand to an integer literal equal to the
109
+ number of times the ` $( $x )* ` repetition will repeat. For example, if
110
+ the metavariable ` $x ` repeats four times then it will expand to the integer
111
+ literal ` 4 ` .
110
112
111
113
If repetitions are nested, then an optional depth parameter can be used to
112
114
limit the number of nested repetitions that are counted. For example, a macro
@@ -126,7 +128,7 @@ of repetitions of `$x`.
126
128
Within a repetition, the ` ${index()} ` and ` ${length()} ` metavariable
127
129
expressions give the index of the current repetition and the length of the
128
130
repetition (i.e., the number of times it will repeat). The index value ranges
129
- from ` 0 ` to ` length - 1 ` .
131
+ from ` 0 ` to ` length - 1 ` , and the expanded values are integer literals .
130
132
131
133
For nested repetitions, the ` ${index()} ` and ` ${length()} ` metavariable
132
134
expressions expand to the inner-most index and length respectively.
You can’t perform that action at this time.
0 commit comments