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