counter-append.exp revision 1.2 1 1.1 rillig Global:RELEVANT = yes (load-time part)
2 1.1 rillig Global:COUNTER =
3 1.1 rillig Global:NEXT = ${COUNTER::+=a}${COUNTER:[#]}
4 1.1 rillig Global:A =
5 1.1 rillig Var_Parse: ${NEXT} with VARE_WANTRES|VARE_ASSIGN
6 1.1 rillig Var_Parse: ${COUNTER::+=a}${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
7 1.1 rillig Applying ${COUNTER::...} to "" (VARE_WANTRES|VARE_ASSIGN, none, none)
8 1.1 rillig Modifier part: "a"
9 1.1 rillig Global:COUNTER = a
10 1.1 rillig Result of ${COUNTER::+=a} is "" (VARE_WANTRES|VARE_ASSIGN, none, none)
11 1.1 rillig Var_Parse: ${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
12 1.1 rillig Applying ${COUNTER:[...} to " a" (VARE_WANTRES|VARE_ASSIGN, none, none)
13 1.1 rillig Modifier part: "#"
14 1.1 rillig Result of ${COUNTER:[#]} is "1" (VARE_WANTRES|VARE_ASSIGN, none, none)
15 1.2 rillig Global:A = 1
16 1.1 rillig Global:B =
17 1.1 rillig Var_Parse: ${NEXT} with VARE_WANTRES|VARE_ASSIGN
18 1.1 rillig Var_Parse: ${COUNTER::+=a}${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
19 1.1 rillig Applying ${COUNTER::...} to " a" (VARE_WANTRES|VARE_ASSIGN, none, none)
20 1.1 rillig Modifier part: "a"
21 1.1 rillig Global:COUNTER = a a
22 1.1 rillig Result of ${COUNTER::+=a} is "" (VARE_WANTRES|VARE_ASSIGN, none, none)
23 1.1 rillig Var_Parse: ${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
24 1.1 rillig Applying ${COUNTER:[...} to " a a" (VARE_WANTRES|VARE_ASSIGN, none, none)
25 1.1 rillig Modifier part: "#"
26 1.1 rillig Result of ${COUNTER:[#]} is "2" (VARE_WANTRES|VARE_ASSIGN, none, none)
27 1.2 rillig Global:B = 2
28 1.1 rillig Global:C =
29 1.1 rillig Var_Parse: ${NEXT} with VARE_WANTRES|VARE_ASSIGN
30 1.1 rillig Var_Parse: ${COUNTER::+=a}${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
31 1.1 rillig Applying ${COUNTER::...} to " a a" (VARE_WANTRES|VARE_ASSIGN, none, none)
32 1.1 rillig Modifier part: "a"
33 1.1 rillig Global:COUNTER = a a a
34 1.1 rillig Result of ${COUNTER::+=a} is "" (VARE_WANTRES|VARE_ASSIGN, none, none)
35 1.1 rillig Var_Parse: ${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
36 1.1 rillig Applying ${COUNTER:[...} to " a a a" (VARE_WANTRES|VARE_ASSIGN, none, none)
37 1.1 rillig Modifier part: "#"
38 1.1 rillig Result of ${COUNTER:[#]} is "3" (VARE_WANTRES|VARE_ASSIGN, none, none)
39 1.2 rillig Global:C = 3
40 1.1 rillig Global:RELEVANT = no
41 1.1 rillig Global:RELEVANT = yes (run-time part)
42 1.1 rillig Result of ${RELEVANT::=yes (run-time part)} is "" (VARE_WANTRES, none, none)
43 1.1 rillig Var_Parse: ${A:Q} B=${B:Q} C=${C:Q} COUNTER=${COUNTER:[#]:Q} with VARE_WANTRES
44 1.1 rillig Applying ${A:Q} to "1" (VARE_WANTRES, none, none)
45 1.1 rillig QuoteMeta: [1]
46 1.1 rillig Result of ${A:Q} is "1" (VARE_WANTRES, none, none)
47 1.1 rillig Var_Parse: ${B:Q} C=${C:Q} COUNTER=${COUNTER:[#]:Q} with VARE_WANTRES
48 1.1 rillig Applying ${B:Q} to "2" (VARE_WANTRES, none, none)
49 1.1 rillig QuoteMeta: [2]
50 1.1 rillig Result of ${B:Q} is "2" (VARE_WANTRES, none, none)
51 1.1 rillig Var_Parse: ${C:Q} COUNTER=${COUNTER:[#]:Q} with VARE_WANTRES
52 1.1 rillig Applying ${C:Q} to "3" (VARE_WANTRES, none, none)
53 1.1 rillig QuoteMeta: [3]
54 1.1 rillig Result of ${C:Q} is "3" (VARE_WANTRES, none, none)
55 1.1 rillig Var_Parse: ${COUNTER:[#]:Q} with VARE_WANTRES
56 1.2 rillig Applying ${COUNTER:[...} to " a a a" (VARE_WANTRES, none, none)
57 1.1 rillig Modifier part: "#"
58 1.2 rillig Result of ${COUNTER:[#]} is "3" (VARE_WANTRES, none, none)
59 1.2 rillig Applying ${COUNTER:Q} to "3" (VARE_WANTRES, none, none)
60 1.2 rillig QuoteMeta: [3]
61 1.2 rillig Result of ${COUNTER:Q} is "3" (VARE_WANTRES, none, none)
62 1.2 rillig A=1 B=2 C=3 COUNTER=3
63 1.1 rillig Var_Parse: ${RELEVANT::=no} with VARE_WANTRES
64 1.1 rillig Applying ${RELEVANT::...} to "yes (run-time part)" (VARE_WANTRES, none, none)
65 1.1 rillig Modifier part: "no"
66 1.1 rillig Global:RELEVANT = no
67 1.1 rillig exit status 0
68