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