From: Ulya Trofimovich Date: Tue, 11 Jul 2017 15:12:21 +0000 (+0100) Subject: Allocate final/fallback tag versions beforehand. X-Git-Tag: 1.0~39^2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6279a08034c3590d685a24ecb9d9f3fc99156520;p=re2c Allocate final/fallback tag versions beforehand. Just a more clear and intuitive way to allocate them, and easier to document. Updated a lot of tests; changes are trivial. --- diff --git a/re2c/src/dfa/determinization.cc b/re2c/src/dfa/determinization.cc index 521e0c75..70a1f83a 100644 --- a/re2c/src/dfa/determinization.cc +++ b/re2c/src/dfa/determinization.cc @@ -80,7 +80,9 @@ dfa_t::dfa_t(const nfa_t &nfa, const opt_t *opts, // final/fallback versions will be assigned on the go finvers = new tagver_t[ntag]; - std::fill(finvers, finvers + ntag, TAGVER_ZERO); + for (size_t i = 0; i < ntag; ++i) { + finvers[i] = fixed(tags[i]) ? TAGVER_ZERO : ++maxtagver; + } // iterate while new kernels are added: for each alphabet symbol, // build tagged epsilon-closure of all reachable NFA states, diff --git a/re2c/src/dfa/find_state.cc b/re2c/src/dfa/find_state.cc index 7f667fe7..09b75f1b 100644 --- a/re2c/src/dfa/find_state.cc +++ b/re2c/src/dfa/find_state.cc @@ -352,17 +352,10 @@ static tcmd_t *finalizer(const clos_t &clos, size_t ridx, for (size_t t = rule.ltag; t < rule.htag; ++t) { const Tag &tag = tags[t]; - const tagver_t v = abs(vers[t]), l = hist.last(look, t); - tagver_t &f = dfa.finvers[t]; - - // don't waste versions on fixed tags if (fixed(tag)) continue; - // pick a fresh version: final version is also used as fallback one - if (f == TAGVER_ZERO) { - f = ++dfa.maxtagver; - } - + const tagver_t v = abs(vers[t]), l = hist.last(look, t); + tagver_t &f = dfa.finvers[t]; if (l == TAGVER_ZERO) { copy = tcpool.make_copy(copy, f, v); } else if (history(tag)) { diff --git a/re2c/test/posix_captures/basic/03.i--flex-syntax.c b/re2c/test/posix_captures/basic/03.i--flex-syntax.c index c27769e2..46e0014a 100644 --- a/re2c/test/posix_captures/basic/03.i--flex-syntax.c +++ b/re2c/test/posix_captures/basic/03.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -46,11 +46,11 @@ yy6: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/basic/05.i--flex-syntax.c b/re2c/test/posix_captures/basic/05.i--flex-syntax.c index d1d11fbd..b62acfe4 100644 --- a/re2c/test/posix_captures/basic/05.i--flex-syntax.c +++ b/re2c/test/posix_captures/basic/05.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt4 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt4 = yyt5 = yyt6 = YYCURSOR; + yyt1 = yyt2 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt5 = yyt6 = YYCURSOR; + yyt2 = yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -39,7 +39,7 @@ yy6: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy7; default: goto yy5; } @@ -47,7 +47,7 @@ yy7: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt2 = YYCURSOR; + yyt5 = YYCURSOR; goto yy8; default: goto yy5; } @@ -55,7 +55,7 @@ yy8: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt3 = YYCURSOR; + yyt6 = YYCURSOR; goto yy9; default: goto yy5; } @@ -63,7 +63,7 @@ yy9: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt6 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: goto yy10; } @@ -71,14 +71,14 @@ yy10: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt4; - yypmatch[4] = yyt5; - yypmatch[6] = yyt6; - yypmatch[7] = yyt1; - yypmatch[0] = yyt4; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[6] = yyt3; + yypmatch[7] = yyt4; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt5; - yypmatch[5] = yyt6; + yypmatch[3] = yyt2; + yypmatch[5] = yyt3; {} } yy11: @@ -87,13 +87,13 @@ yy11: yych = *YYCURSOR; switch (yych) { case 'b': - yyt2 = yyt3; - yyt3 = yyt6; - yyt6 = YYCURSOR; + yyt5 = yyt6; + yyt6 = yyt3; + yyt3 = YYCURSOR; goto yy11; default: - yyt6 = yyt1; - yyt1 = yyt2; + yyt3 = yyt4; + yyt4 = yyt5; goto yy10; } } diff --git a/re2c/test/posix_captures/basic/06.i--flex-syntax.c b/re2c/test/posix_captures/basic/06.i--flex-syntax.c index d1d11fbd..b62acfe4 100644 --- a/re2c/test/posix_captures/basic/06.i--flex-syntax.c +++ b/re2c/test/posix_captures/basic/06.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt4 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt4 = yyt5 = yyt6 = YYCURSOR; + yyt1 = yyt2 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt5 = yyt6 = YYCURSOR; + yyt2 = yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -39,7 +39,7 @@ yy6: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy7; default: goto yy5; } @@ -47,7 +47,7 @@ yy7: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt2 = YYCURSOR; + yyt5 = YYCURSOR; goto yy8; default: goto yy5; } @@ -55,7 +55,7 @@ yy8: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt3 = YYCURSOR; + yyt6 = YYCURSOR; goto yy9; default: goto yy5; } @@ -63,7 +63,7 @@ yy9: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt6 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: goto yy10; } @@ -71,14 +71,14 @@ yy10: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt4; - yypmatch[4] = yyt5; - yypmatch[6] = yyt6; - yypmatch[7] = yyt1; - yypmatch[0] = yyt4; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[6] = yyt3; + yypmatch[7] = yyt4; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt5; - yypmatch[5] = yyt6; + yypmatch[3] = yyt2; + yypmatch[5] = yyt3; {} } yy11: @@ -87,13 +87,13 @@ yy11: yych = *YYCURSOR; switch (yych) { case 'b': - yyt2 = yyt3; - yyt3 = yyt6; - yyt6 = YYCURSOR; + yyt5 = yyt6; + yyt6 = yyt3; + yyt3 = YYCURSOR; goto yy11; default: - yyt6 = yyt1; - yyt1 = yyt2; + yyt3 = yyt4; + yyt4 = yyt5; goto yy10; } } diff --git a/re2c/test/posix_captures/basic/14.i--flex-syntax.c b/re2c/test/posix_captures/basic/14.i--flex-syntax.c index b3ba328f..5344db7b 100644 --- a/re2c/test/posix_captures/basic/14.i--flex-syntax.c +++ b/re2c/test/posix_captures/basic/14.i--flex-syntax.c @@ -7,11 +7,11 @@ switch (yych) { case 'a': case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; case 'c': - yyt1 = yyt3 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt4 = NULL; + yyt1 = YYCURSOR; goto yy6; default: goto yy2; } @@ -30,10 +30,10 @@ yy3: switch (yych) { case 'a': case 'b': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy5; } @@ -42,15 +42,15 @@ yy5: goto yy2; yy6: ++YYCURSOR; - yyt4 = NULL; + yyt3 = NULL; { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[3] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt4; + yypmatch[0] = yyt1; + yypmatch[2] = yyt4; + yypmatch[3] = yyt2; + yypmatch[4] = yyt3; + yypmatch[5] = yyt3; yypmatch[1] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/basic/42.i--flex-syntax.c b/re2c/test/posix_captures/basic/42.i--flex-syntax.c index 466e2207..ed16437a 100644 --- a/re2c/test/posix_captures/basic/42.i--flex-syntax.c +++ b/re2c/test/posix_captures/basic/42.i--flex-syntax.c @@ -8,11 +8,11 @@ case 'a': case 'b': case 'c': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy3; case 'd': - yyt1 = yyt3 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt3 = NULL; + yyt1 = YYCURSOR; goto yy6; default: goto yy2; } @@ -32,10 +32,10 @@ yy3: case 'a': case 'b': case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy3; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy5; } @@ -47,9 +47,9 @@ yy6: { const size_t yynmatch = 2; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[3] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[3] = yyt2; yypmatch[1] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/basic/43.i--flex-syntax.c b/re2c/test/posix_captures/basic/43.i--flex-syntax.c index 39def3c2..83dff1bb 100644 --- a/re2c/test/posix_captures/basic/43.i--flex-syntax.c +++ b/re2c/test/posix_captures/basic/43.i--flex-syntax.c @@ -31,10 +31,10 @@ yy4: switch (yych) { case 'a': case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt2 = yyt4 = YYCURSOR; goto yy7; default: goto yy5; } @@ -45,7 +45,7 @@ yy6: yych = *++YYCURSOR; switch (yych) { case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy9; default: goto yy4; } @@ -55,14 +55,14 @@ yy7: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2; - yyt2 = YYCURSOR; + yyt3 = yyt2; + yyt2 = yyt4 = YYCURSOR; goto yy7; case 'c': - yyt4 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; default: goto yy5; } @@ -79,14 +79,14 @@ yy10: switch (yych) { case 'a': case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt4; - yyt2 = YYCURSOR; + yyt3 = yyt2; + yyt2 = yyt4 = YYCURSOR; goto yy7; case 'd': - yyt4 = yyt1; + yyt2 = yyt3; goto yy11; default: goto yy5; } @@ -95,9 +95,9 @@ yy11: { const size_t yynmatch = 2; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt3; - yypmatch[2] = yyt4; - yypmatch[3] = yyt2; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; + yypmatch[3] = yyt4; yypmatch[1] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/basic/51.i--flex-syntax.c b/re2c/test/posix_captures/basic/51.i--flex-syntax.c index 05a73a30..0fe7ddca 100644 --- a/re2c/test/posix_captures/basic/51.i--flex-syntax.c +++ b/re2c/test/posix_captures/basic/51.i--flex-syntax.c @@ -20,7 +20,7 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; case 'c': yyt1 = yyt2 = YYCURSOR; @@ -37,7 +37,7 @@ yy5: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy7; default: goto yy4; } @@ -48,7 +48,7 @@ yy7: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy7; case 'd': goto yy9; default: goto yy4; @@ -58,11 +58,11 @@ yy9: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[0] = yyt2 - 1; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1 - 1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/basic/53.i--flex-syntax.c b/re2c/test/posix_captures/basic/53.i--flex-syntax.c index 37112624..e772c429 100644 --- a/re2c/test/posix_captures/basic/53.i--flex-syntax.c +++ b/re2c/test/posix_captures/basic/53.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -46,9 +46,9 @@ yy6: { const size_t yynmatch = 2; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[3] = yyt1; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[3] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/basic/59.i--flex-syntax.c b/re2c/test/posix_captures/basic/59.i--flex-syntax.c index cea702aa..85723ee7 100644 --- a/re2c/test/posix_captures/basic/59.i--flex-syntax.c +++ b/re2c/test/posix_captures/basic/59.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -26,10 +26,10 @@ yy3: case 'a': goto yy3; case 'b': case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; case 'd': - yyt1 = yyt3 = NULL; + yyt2 = yyt3 = NULL; goto yy8; default: goto yy5; } @@ -43,10 +43,10 @@ yy6: switch (yych) { case 'b': case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; default: goto yy5; } @@ -62,9 +62,9 @@ yy10: { const size_t yynmatch = 2; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[3] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[3] = yyt2; yypmatch[1] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/categorize/04.i--flex-syntax.c b/re2c/test/posix_captures/categorize/04.i--flex-syntax.c index c27769e2..46e0014a 100644 --- a/re2c/test/posix_captures/categorize/04.i--flex-syntax.c +++ b/re2c/test/posix_captures/categorize/04.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -46,11 +46,11 @@ yy6: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/categorize/05.i--flex-syntax.c b/re2c/test/posix_captures/categorize/05.i--flex-syntax.c index c0d4cff0..eccafaa1 100644 --- a/re2c/test/posix_captures/categorize/05.i--flex-syntax.c +++ b/re2c/test/posix_captures/categorize/05.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; default: goto yy2; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; default: goto yy4; } @@ -55,10 +55,10 @@ yy8: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; default: goto yy4; } @@ -74,11 +74,11 @@ yy11: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -86,7 +86,7 @@ yy12: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; case 'b': yyt3 = YYCURSOR; @@ -114,7 +114,7 @@ yy16: switch (yych) { case 'a': goto yy10; default: - yyt1 = yyt3; + yyt2 = yyt3; goto yy11; } } diff --git a/re2c/test/posix_captures/forcedassoc/09.i--flex-syntax.c b/re2c/test/posix_captures/forcedassoc/09.i--flex-syntax.c index 99ec6a30..64bb1fac 100644 --- a/re2c/test/posix_captures/forcedassoc/09.i--flex-syntax.c +++ b/re2c/test/posix_captures/forcedassoc/09.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,30 +34,30 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; yy7: { const size_t yynmatch = 5; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[6] = yyt1; - yypmatch[8] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[6] = yyt3; + yypmatch[8] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[4] = yyt1; + yypmatch[3] = yyt3; + yypmatch[4] = yyt3; yypmatch[5] = YYCURSOR; - yypmatch[7] = yyt3; + yypmatch[7] = yyt2; yypmatch[9] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/forcedassoc/10.i--flex-syntax.c b/re2c/test/posix_captures/forcedassoc/10.i--flex-syntax.c index 99ec6a30..64bb1fac 100644 --- a/re2c/test/posix_captures/forcedassoc/10.i--flex-syntax.c +++ b/re2c/test/posix_captures/forcedassoc/10.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,30 +34,30 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; yy7: { const size_t yynmatch = 5; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[6] = yyt1; - yypmatch[8] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[6] = yyt3; + yypmatch[8] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[4] = yyt1; + yypmatch[3] = yyt3; + yypmatch[4] = yyt3; yypmatch[5] = YYCURSOR; - yypmatch[7] = yyt3; + yypmatch[7] = yyt2; yypmatch[9] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/forcedassoc/11.i--flex-syntax.c b/re2c/test/posix_captures/forcedassoc/11.i--flex-syntax.c index 99ec6a30..64bb1fac 100644 --- a/re2c/test/posix_captures/forcedassoc/11.i--flex-syntax.c +++ b/re2c/test/posix_captures/forcedassoc/11.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,30 +34,30 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; yy7: { const size_t yynmatch = 5; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[6] = yyt1; - yypmatch[8] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[6] = yyt3; + yypmatch[8] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[4] = yyt1; + yypmatch[3] = yyt3; + yypmatch[4] = yyt3; yypmatch[5] = YYCURSOR; - yypmatch[7] = yyt3; + yypmatch[7] = yyt2; yypmatch[9] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/forcedassoc/12.i--flex-syntax.c b/re2c/test/posix_captures/forcedassoc/12.i--flex-syntax.c index 99ec6a30..64bb1fac 100644 --- a/re2c/test/posix_captures/forcedassoc/12.i--flex-syntax.c +++ b/re2c/test/posix_captures/forcedassoc/12.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,30 +34,30 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; yy7: { const size_t yynmatch = 5; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[6] = yyt1; - yypmatch[8] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[6] = yyt3; + yypmatch[8] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[4] = yyt1; + yypmatch[3] = yyt3; + yypmatch[4] = yyt3; yypmatch[5] = YYCURSOR; - yypmatch[7] = yyt3; + yypmatch[7] = yyt2; yypmatch[9] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/forcedassoc/17.i--flex-syntax.c b/re2c/test/posix_captures/forcedassoc/17.i--flex-syntax.c index e8f722ab..ccc4e45a 100644 --- a/re2c/test/posix_captures/forcedassoc/17.i--flex-syntax.c +++ b/re2c/test/posix_captures/forcedassoc/17.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -37,21 +37,21 @@ yy5: goto yy2; yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; yy7: { const size_t yynmatch = 5; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[6] = yyt1; - yypmatch[8] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[6] = yyt3; + yypmatch[8] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[4] = yyt1; + yypmatch[3] = yyt3; + yypmatch[4] = yyt3; yypmatch[5] = YYCURSOR; - yypmatch[7] = yyt3; + yypmatch[7] = yyt2; yypmatch[9] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/forcedassoc/18.i--flex-syntax.c b/re2c/test/posix_captures/forcedassoc/18.i--flex-syntax.c index e8f722ab..ccc4e45a 100644 --- a/re2c/test/posix_captures/forcedassoc/18.i--flex-syntax.c +++ b/re2c/test/posix_captures/forcedassoc/18.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -37,21 +37,21 @@ yy5: goto yy2; yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; yy7: { const size_t yynmatch = 5; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[6] = yyt1; - yypmatch[8] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[6] = yyt3; + yypmatch[8] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[4] = yyt1; + yypmatch[3] = yyt3; + yypmatch[4] = yyt3; yypmatch[5] = YYCURSOR; - yypmatch[7] = yyt3; + yypmatch[7] = yyt2; yypmatch[9] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/forcedassoc/23.i--flex-syntax.c b/re2c/test/posix_captures/forcedassoc/23.i--flex-syntax.c index e8f722ab..ccc4e45a 100644 --- a/re2c/test/posix_captures/forcedassoc/23.i--flex-syntax.c +++ b/re2c/test/posix_captures/forcedassoc/23.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -37,21 +37,21 @@ yy5: goto yy2; yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; yy7: { const size_t yynmatch = 5; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[6] = yyt1; - yypmatch[8] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[6] = yyt3; + yypmatch[8] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[4] = yyt1; + yypmatch[3] = yyt3; + yypmatch[4] = yyt3; yypmatch[5] = YYCURSOR; - yypmatch[7] = yyt3; + yypmatch[7] = yyt2; yypmatch[9] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/forcedassoc/24.i--flex-syntax.c b/re2c/test/posix_captures/forcedassoc/24.i--flex-syntax.c index e8f722ab..ccc4e45a 100644 --- a/re2c/test/posix_captures/forcedassoc/24.i--flex-syntax.c +++ b/re2c/test/posix_captures/forcedassoc/24.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -37,21 +37,21 @@ yy5: goto yy2; yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; yy7: { const size_t yynmatch = 5; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[6] = yyt1; - yypmatch[8] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[6] = yyt3; + yypmatch[8] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[4] = yyt1; + yypmatch[3] = yyt3; + yypmatch[4] = yyt3; yypmatch[5] = YYCURSOR; - yypmatch[7] = yyt3; + yypmatch[7] = yyt2; yypmatch[9] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/glennfowler/21.i--flex-syntax.c b/re2c/test/posix_captures/glennfowler/21.i--flex-syntax.c index 6663961d..02d854ff 100644 --- a/re2c/test/posix_captures/glennfowler/21.i--flex-syntax.c +++ b/re2c/test/posix_captures/glennfowler/21.i--flex-syntax.c @@ -7,10 +7,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy5; default: goto yy2; } @@ -25,7 +25,7 @@ yy2: yy3: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = yyt1; + yyt2 = yyt3; switch (yych) { case 'b': goto yy7; default: goto yy4; @@ -34,11 +34,11 @@ yy4: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -59,16 +59,16 @@ yy7: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy8; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; default: goto yy6; } yy8: ++YYCURSOR; - yyt3 = yyt1; + yyt2 = yyt3; goto yy4; } diff --git a/re2c/test/posix_captures/glennfowler/22.i--flex-syntax.c b/re2c/test/posix_captures/glennfowler/22.i--flex-syntax.c index a477a3aa..0e4e4a8f 100644 --- a/re2c/test/posix_captures/glennfowler/22.i--flex-syntax.c +++ b/re2c/test/posix_captures/glennfowler/22.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -22,7 +22,7 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy5; case 'b': goto yy7; default: goto yy4; @@ -35,11 +35,11 @@ yy5: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -47,10 +47,10 @@ yy7: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy5; case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; default: goto yy4; } diff --git a/re2c/test/posix_captures/glennfowler/24.i--flex-syntax.c b/re2c/test/posix_captures/glennfowler/24.i--flex-syntax.c index 82f7610d..11a2cac4 100644 --- a/re2c/test/posix_captures/glennfowler/24.i--flex-syntax.c +++ b/re2c/test/posix_captures/glennfowler/24.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; default: goto yy2; } @@ -25,7 +25,7 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; case 'b': goto yy8; default: goto yy4; @@ -49,11 +49,11 @@ yy7: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -61,10 +61,10 @@ yy8: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; default: goto yy4; } diff --git a/re2c/test/posix_captures/glennfowler/27.i--flex-syntax.c b/re2c/test/posix_captures/glennfowler/27.i--flex-syntax.c index c0d4cff0..eccafaa1 100644 --- a/re2c/test/posix_captures/glennfowler/27.i--flex-syntax.c +++ b/re2c/test/posix_captures/glennfowler/27.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; default: goto yy2; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; default: goto yy4; } @@ -55,10 +55,10 @@ yy8: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; default: goto yy4; } @@ -74,11 +74,11 @@ yy11: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -86,7 +86,7 @@ yy12: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; case 'b': yyt3 = YYCURSOR; @@ -114,7 +114,7 @@ yy16: switch (yych) { case 'a': goto yy10; default: - yyt1 = yyt3; + yyt2 = yyt3; goto yy11; } } diff --git a/re2c/test/posix_captures/glennfowler/28.i--flex-syntax.c b/re2c/test/posix_captures/glennfowler/28.i--flex-syntax.c index e1f5ed5b..de1e8300 100644 --- a/re2c/test/posix_captures/glennfowler/28.i--flex-syntax.c +++ b/re2c/test/posix_captures/glennfowler/28.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt4 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt4 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; default: goto yy2; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; default: goto yy4; } @@ -55,10 +55,10 @@ yy8: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; default: goto yy4; } @@ -72,10 +72,10 @@ yy10: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt4 = YYCURSOR; goto yy15; case 'b': - yyt3 = YYCURSOR; + yyt4 = YYCURSOR; goto yy16; default: goto yy4; } @@ -83,10 +83,10 @@ yy11: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy18; default: goto yy4; } @@ -104,10 +104,10 @@ yy14: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt4 = YYCURSOR; goto yy19; case 'b': - yyt3 = YYCURSOR; + yyt4 = YYCURSOR; goto yy16; default: goto yy4; } @@ -123,13 +123,13 @@ yy17: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt4; - yypmatch[4] = yyt1; - yypmatch[6] = yyt3; - yypmatch[0] = yyt4; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[6] = yyt4; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt3; + yypmatch[3] = yyt2; + yypmatch[5] = yyt4; yypmatch[7] = YYCURSOR; {} } @@ -137,10 +137,10 @@ yy18: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt4 = YYCURSOR; goto yy23; case 'b': - yyt3 = YYCURSOR; + yyt4 = YYCURSOR; goto yy16; default: goto yy4; } @@ -148,10 +148,10 @@ yy19: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt4 = YYCURSOR; goto yy15; case 'b': - yyt2 = YYCURSOR; + yyt3 = YYCURSOR; goto yy24; default: goto yy4; } @@ -185,7 +185,7 @@ yy24: switch (yych) { case 'a': goto yy16; default: - yyt3 = yyt2; + yyt4 = yyt3; goto yy17; } yy25: @@ -198,8 +198,8 @@ yy26: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = yyt2; - yyt3 = yyt5; + yyt2 = yyt3; + yyt4 = yyt5; goto yy16; default: goto yy17; } diff --git a/re2c/test/posix_captures/glennfowler/31.i--flex-syntax.c b/re2c/test/posix_captures/glennfowler/31.i--flex-syntax.c index bacef65e..ae9f3773 100644 --- a/re2c/test/posix_captures/glennfowler/31.i--flex-syntax.c +++ b/re2c/test/posix_captures/glennfowler/31.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -22,7 +22,7 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy5; case 'b': goto yy7; default: goto yy4; @@ -40,11 +40,11 @@ yy6: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -52,7 +52,7 @@ yy7: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; default: goto yy4; } @@ -66,7 +66,7 @@ yy9: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy5; case 'b': goto yy8; default: goto yy6; diff --git a/re2c/test/posix_captures/glennfowler/32.i--flex-syntax.c b/re2c/test/posix_captures/glennfowler/32.i--flex-syntax.c index 5d558cf4..4b5b21bb 100644 --- a/re2c/test/posix_captures/glennfowler/32.i--flex-syntax.c +++ b/re2c/test/posix_captures/glennfowler/32.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -22,7 +22,7 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy5; case 'b': goto yy6; default: goto yy4; @@ -34,7 +34,7 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt3 = YYCURSOR; goto yy7; case 'b': goto yy9; default: goto yy4; @@ -43,7 +43,7 @@ yy6: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; default: goto yy4; } @@ -57,13 +57,13 @@ yy8: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt3; - yypmatch[4] = yyt1; - yypmatch[6] = yyt2; - yypmatch[0] = yyt3; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[6] = yyt3; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt2; + yypmatch[3] = yyt2; + yypmatch[5] = yyt3; yypmatch[7] = YYCURSOR; {} } @@ -71,7 +71,7 @@ yy9: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; default: goto yy4; } @@ -79,7 +79,7 @@ yy10: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt3 = YYCURSOR; goto yy13; case 'b': goto yy9; default: goto yy4; @@ -94,7 +94,7 @@ yy12: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt3 = YYCURSOR; goto yy7; case 'b': goto yy11; default: goto yy8; @@ -103,8 +103,8 @@ yy13: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = yyt2; - yyt2 = YYCURSOR; + yyt2 = yyt3; + yyt3 = YYCURSOR; goto yy7; case 'b': goto yy15; default: goto yy8; @@ -116,8 +116,8 @@ yy15: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = yyt2; - yyt2 = YYCURSOR; + yyt2 = yyt3; + yyt3 = YYCURSOR; goto yy12; default: goto yy8; } diff --git a/re2c/test/posix_captures/glennfowler/35.i--flex-syntax.c b/re2c/test/posix_captures/glennfowler/35.i--flex-syntax.c index 79496b96..01564c9d 100644 --- a/re2c/test/posix_captures/glennfowler/35.i--flex-syntax.c +++ b/re2c/test/posix_captures/glennfowler/35.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -22,11 +22,11 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = yyt3 = NULL; - yyt4 = YYCURSOR; + yyt2 = yyt6 = NULL; + yyt3 = YYCURSOR; goto yy5; case 'b': - yyt1 = YYCURSOR; + yyt6 = YYCURSOR; goto yy7; default: goto yy4; } @@ -37,25 +37,25 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt5 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; default: - yyt5 = yyt6 = NULL; + yyt4 = yyt5 = NULL; goto yy6; } yy6: { const size_t yynmatch = 5; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[5] = yyt3; - yypmatch[6] = yyt4; - yypmatch[8] = yyt5; - yypmatch[9] = yyt6; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt6; + yypmatch[5] = yyt2; + yypmatch[6] = yyt3; + yypmatch[8] = yyt4; + yypmatch[9] = yyt5; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt4; + yypmatch[3] = yyt3; yypmatch[7] = YYCURSOR; {} } @@ -63,13 +63,13 @@ yy7: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt3 = yyt4 = YYCURSOR; + yyt2 = yyt3 = YYCURSOR; goto yy5; default: goto yy4; } yy8: ++YYCURSOR; - yyt6 = YYCURSOR; + yyt5 = YYCURSOR; goto yy6; } diff --git a/re2c/test/posix_captures/glennfowler/40.i--flex-syntax.c b/re2c/test/posix_captures/glennfowler/40.i--flex-syntax.c index 89bf5a8a..b8f2ccc3 100644 --- a/re2c/test/posix_captures/glennfowler/40.i--flex-syntax.c +++ b/re2c/test/posix_captures/glennfowler/40.i--flex-syntax.c @@ -7,10 +7,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy6; default: goto yy2; } @@ -37,10 +37,10 @@ yy5: case 0: goto yy2; case 1: goto yy22; case 2: - yyt3 = yyt4; + yyt2 = yyt4; goto yy22; default: - yyt3 = yyt1; + yyt2 = yyt3; goto yy22; } yy6: @@ -59,10 +59,10 @@ yy8: switch (yych) { case 0x00: goto yy5; case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy14; case 'z': goto yy8; default: goto yy3; @@ -74,10 +74,10 @@ yy10: switch (yych) { case 0x00: goto yy5; case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy16; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy18; case 'y': goto yy10; default: goto yy6; @@ -127,30 +127,30 @@ yy20: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt3; goto yy22; case 'a': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt3; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt3 = yyt1; + yyt2 = yyt3; yyt4 = YYCURSOR; goto yy33; case 'z': goto yy20; default: - yyt3 = yyt1; + yyt2 = yyt3; goto yy12; } yy22: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -161,14 +161,14 @@ yy23: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt3; goto yy22; case 'y': goto yy23; case 'z': - yyt3 = yyt1; + yyt2 = yyt3; goto yy25; default: - yyt3 = yyt1; + yyt2 = yyt3; goto yy14; } yy25: @@ -181,7 +181,7 @@ yy25: yyt4 = YYCURSOR; goto yy35; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy14; case 'y': goto yy23; case 'z': goto yy25; @@ -194,7 +194,7 @@ yy27: switch (yych) { case 0x00: goto yy5; case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy16; case 'b': yyt4 = YYCURSOR; @@ -210,14 +210,14 @@ yy29: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt3; goto yy22; case 'y': - yyt3 = yyt1; + yyt2 = yyt3; goto yy27; case 'z': goto yy29; default: - yyt3 = yyt1; + yyt2 = yyt3; goto yy16; } yy31: @@ -227,19 +227,19 @@ yy31: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt3; goto yy22; case 'a': - yyt3 = yyt1; + yyt2 = yyt3; yyt4 = YYCURSOR; goto yy39; case 'b': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt3; + yyt3 = YYCURSOR; goto yy18; case 'y': goto yy31; default: - yyt3 = yyt1; + yyt2 = yyt3; goto yy18; } yy33: @@ -289,7 +289,7 @@ yy41: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt4; + yyt2 = yyt4; goto yy22; case 'y': goto yy41; case 'z': goto yy43; @@ -302,21 +302,21 @@ yy43: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt3; goto yy22; case 'a': - yyt3 = yyt1; - yyt1 = yyt4; + yyt2 = yyt3; + yyt3 = yyt4; yyt4 = YYCURSOR; goto yy35; case 'b': - yyt3 = yyt1; + yyt2 = yyt3; yyt4 = YYCURSOR; goto yy33; case 'y': goto yy41; case 'z': goto yy43; default: - yyt3 = yyt1; + yyt2 = yyt3; goto yy33; } yy45: @@ -326,7 +326,7 @@ yy45: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt3; goto yy22; case 'y': goto yy45; case 'z': goto yy47; @@ -339,21 +339,21 @@ yy47: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt4; + yyt2 = yyt4; goto yy22; case 'a': - yyt3 = yyt4; + yyt2 = yyt4; yyt4 = YYCURSOR; goto yy35; case 'b': - yyt1 = yyt4; + yyt2 = yyt4; yyt3 = yyt4; yyt4 = YYCURSOR; goto yy33; case 'y': goto yy45; case 'z': goto yy47; default: - yyt3 = yyt4; + yyt2 = yyt4; goto yy35; } yy49: @@ -363,21 +363,21 @@ yy49: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt4; + yyt2 = yyt4; goto yy22; case 'a': - yyt1 = yyt4; + yyt2 = yyt4; yyt3 = yyt4; yyt4 = YYCURSOR; goto yy39; case 'b': - yyt3 = yyt4; + yyt2 = yyt4; yyt4 = YYCURSOR; goto yy37; case 'y': goto yy49; case 'z': goto yy51; default: - yyt3 = yyt4; + yyt2 = yyt4; goto yy37; } yy51: @@ -387,7 +387,7 @@ yy51: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt3; goto yy22; case 'y': goto yy49; case 'z': goto yy51; @@ -400,21 +400,21 @@ yy53: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt3; goto yy22; case 'a': - yyt3 = yyt1; + yyt2 = yyt3; yyt4 = YYCURSOR; goto yy39; case 'b': - yyt3 = yyt1; - yyt1 = yyt4; + yyt2 = yyt3; + yyt3 = yyt4; yyt4 = YYCURSOR; goto yy37; case 'y': goto yy53; case 'z': goto yy55; default: - yyt3 = yyt1; + yyt2 = yyt3; goto yy39; } yy55: @@ -424,7 +424,7 @@ yy55: yych = *YYCURSOR; switch (yych) { case 0x00: - yyt3 = yyt4; + yyt2 = yyt4; goto yy22; case 'y': goto yy53; case 'z': goto yy55; diff --git a/re2c/test/posix_captures/osxbsdcritical/03.i--flex-syntax.c b/re2c/test/posix_captures/osxbsdcritical/03.i--flex-syntax.c index 35080719..fd025651 100644 --- a/re2c/test/posix_captures/osxbsdcritical/03.i--flex-syntax.c +++ b/re2c/test/posix_captures/osxbsdcritical/03.i--flex-syntax.c @@ -7,10 +7,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = yyt4 = YYCURSOR; + yyt1 = yyt3 = yyt4 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,11 +28,11 @@ yy3: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt4 = NULL; - yyt3 = YYCURSOR; + yyt3 = NULL; + yyt2 = YYCURSOR; goto yy8; default: goto yy5; } @@ -48,8 +48,8 @@ yy6: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'b': - yyt4 = NULL; - yyt3 = YYCURSOR; + yyt3 = NULL; + yyt2 = YYCURSOR; goto yy8; default: goto yy9; } @@ -57,10 +57,10 @@ yy7: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt4; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; + yypmatch[4] = yyt3; + yypmatch[5] = yyt3; yypmatch[1] = YYCURSOR; yypmatch[3] = YYCURSOR - 1; {} @@ -73,16 +73,16 @@ yy8: yy9: switch (yych) { case 'a': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt3; - yyt4 = NULL; - yyt3 = YYCURSOR; + yyt4 = yyt2; + yyt3 = NULL; + yyt2 = YYCURSOR; goto yy8; default: - yyt3 = yyt1; + yyt2 = yyt4; goto yy7; } } diff --git a/re2c/test/posix_captures/osxbsdcritical/06.i--flex-syntax.c b/re2c/test/posix_captures/osxbsdcritical/06.i--flex-syntax.c index 35080719..fd025651 100644 --- a/re2c/test/posix_captures/osxbsdcritical/06.i--flex-syntax.c +++ b/re2c/test/posix_captures/osxbsdcritical/06.i--flex-syntax.c @@ -7,10 +7,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = yyt4 = YYCURSOR; + yyt1 = yyt3 = yyt4 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,11 +28,11 @@ yy3: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt4 = NULL; - yyt3 = YYCURSOR; + yyt3 = NULL; + yyt2 = YYCURSOR; goto yy8; default: goto yy5; } @@ -48,8 +48,8 @@ yy6: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'b': - yyt4 = NULL; - yyt3 = YYCURSOR; + yyt3 = NULL; + yyt2 = YYCURSOR; goto yy8; default: goto yy9; } @@ -57,10 +57,10 @@ yy7: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt4; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; + yypmatch[4] = yyt3; + yypmatch[5] = yyt3; yypmatch[1] = YYCURSOR; yypmatch[3] = YYCURSOR - 1; {} @@ -73,16 +73,16 @@ yy8: yy9: switch (yych) { case 'a': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt3; - yyt4 = NULL; - yyt3 = YYCURSOR; + yyt4 = yyt2; + yyt3 = NULL; + yyt2 = YYCURSOR; goto yy8; default: - yyt3 = yyt1; + yyt2 = yyt4; goto yy7; } } diff --git a/re2c/test/posix_captures/other/16.i--flex-syntax.c b/re2c/test/posix_captures/other/16.i--flex-syntax.c index 7ae1db29..08e19c66 100644 --- a/re2c/test/posix_captures/other/16.i--flex-syntax.c +++ b/re2c/test/posix_captures/other/16.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'y': - yyt2 = yyt3 = YYCURSOR; + yyt1 = yyt2 = YYCURSOR; goto yy3; default: goto yy2; } @@ -22,7 +22,7 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'y': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; default: goto yy4; } @@ -39,15 +39,15 @@ yy6: { const size_t yynmatch = 2; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; yypmatch[1] = YYCURSOR; yypmatch[3] = YYCURSOR - 1; {} } yy7: ++YYCURSOR; - yyt3 = yyt1; + yyt2 = yyt3; goto yy6; } diff --git a/re2c/test/posix_captures/repetition/03.i--flex-syntax.c b/re2c/test/posix_captures/repetition/03.i--flex-syntax.c index d5ac4f1c..89d8970f 100644 --- a/re2c/test/posix_captures/repetition/03.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/03.i--flex-syntax.c @@ -5,7 +5,7 @@ if ((YYLIMIT - YYCURSOR) < 6) YYFILL(6); yych = *(YYMARKER = YYCURSOR); if (yych >= 0x01) { - yyt3 = yyt6 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; } yy2: @@ -19,8 +19,8 @@ yy2: yy3: yych = *++YYCURSOR; if (yych >= 0x01) { - yyt4 = yyt5 = NULL; - yyt7 = yyt8 = yyt11 = YYCURSOR; + yyt2 = yyt3 = NULL; + yyt5 = yyt6 = yyt9 = YYCURSOR; goto yy5; } yy4: @@ -29,78 +29,78 @@ yy4: yy5: yych = *++YYCURSOR; if (yych <= 0x00) goto yy4; - yyt2 = yyt9 = yyt10 = NULL; - yyt1 = yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = yyt15 = NULL; + yyt10 = yyt11 = yyt12 = yyt13 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych >= 0x01) { - yyt9 = yyt10 = NULL; - yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = NULL; + yyt10 = yyt11 = yyt14 = YYCURSOR; goto yy8; } - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; yy7: { const size_t yynmatch = 10; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt5; - yypmatch[6] = yyt6; - yypmatch[7] = yyt7; - yypmatch[8] = yyt8; - yypmatch[10] = yyt9; - yypmatch[11] = yyt10; - yypmatch[12] = yyt11; - yypmatch[13] = yyt12; - yypmatch[14] = yyt13; - yypmatch[16] = yyt14; - yypmatch[17] = yyt1; - yypmatch[18] = yyt15; - yypmatch[19] = yyt2; - yypmatch[0] = yyt3; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[5] = yyt3; + yypmatch[6] = yyt4; + yypmatch[7] = yyt5; + yypmatch[8] = yyt6; + yypmatch[10] = yyt7; + yypmatch[11] = yyt8; + yypmatch[12] = yyt9; + yypmatch[13] = yyt10; + yypmatch[14] = yyt11; + yypmatch[16] = yyt12; + yypmatch[17] = yyt13; + yypmatch[18] = yyt14; + yypmatch[19] = yyt15; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt8; - yypmatch[9] = yyt13; + yypmatch[3] = yyt6; + yypmatch[9] = yyt11; yypmatch[15] = YYCURSOR; {} } yy8: yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt11 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt9 = yyt12; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } - yyt11 = yyt12 = NULL; - yyt10 = yyt13 = yyt14 = yyt15 = YYCURSOR; + yyt9 = yyt10 = NULL; + yyt8 = yyt11 = yyt12 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } ++YYCURSOR; - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt2 = yyt15 = NULL; - yyt1 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt14 = yyt15 = NULL; + yyt13 = YYCURSOR; goto yy7; } diff --git a/re2c/test/posix_captures/repetition/10.i--flex-syntax.c b/re2c/test/posix_captures/repetition/10.i--flex-syntax.c index d5ac4f1c..89d8970f 100644 --- a/re2c/test/posix_captures/repetition/10.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/10.i--flex-syntax.c @@ -5,7 +5,7 @@ if ((YYLIMIT - YYCURSOR) < 6) YYFILL(6); yych = *(YYMARKER = YYCURSOR); if (yych >= 0x01) { - yyt3 = yyt6 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; } yy2: @@ -19,8 +19,8 @@ yy2: yy3: yych = *++YYCURSOR; if (yych >= 0x01) { - yyt4 = yyt5 = NULL; - yyt7 = yyt8 = yyt11 = YYCURSOR; + yyt2 = yyt3 = NULL; + yyt5 = yyt6 = yyt9 = YYCURSOR; goto yy5; } yy4: @@ -29,78 +29,78 @@ yy4: yy5: yych = *++YYCURSOR; if (yych <= 0x00) goto yy4; - yyt2 = yyt9 = yyt10 = NULL; - yyt1 = yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = yyt15 = NULL; + yyt10 = yyt11 = yyt12 = yyt13 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych >= 0x01) { - yyt9 = yyt10 = NULL; - yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = NULL; + yyt10 = yyt11 = yyt14 = YYCURSOR; goto yy8; } - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; yy7: { const size_t yynmatch = 10; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt5; - yypmatch[6] = yyt6; - yypmatch[7] = yyt7; - yypmatch[8] = yyt8; - yypmatch[10] = yyt9; - yypmatch[11] = yyt10; - yypmatch[12] = yyt11; - yypmatch[13] = yyt12; - yypmatch[14] = yyt13; - yypmatch[16] = yyt14; - yypmatch[17] = yyt1; - yypmatch[18] = yyt15; - yypmatch[19] = yyt2; - yypmatch[0] = yyt3; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[5] = yyt3; + yypmatch[6] = yyt4; + yypmatch[7] = yyt5; + yypmatch[8] = yyt6; + yypmatch[10] = yyt7; + yypmatch[11] = yyt8; + yypmatch[12] = yyt9; + yypmatch[13] = yyt10; + yypmatch[14] = yyt11; + yypmatch[16] = yyt12; + yypmatch[17] = yyt13; + yypmatch[18] = yyt14; + yypmatch[19] = yyt15; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt8; - yypmatch[9] = yyt13; + yypmatch[3] = yyt6; + yypmatch[9] = yyt11; yypmatch[15] = YYCURSOR; {} } yy8: yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt11 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt9 = yyt12; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } - yyt11 = yyt12 = NULL; - yyt10 = yyt13 = yyt14 = yyt15 = YYCURSOR; + yyt9 = yyt10 = NULL; + yyt8 = yyt11 = yyt12 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } ++YYCURSOR; - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt2 = yyt15 = NULL; - yyt1 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt14 = yyt15 = NULL; + yyt13 = YYCURSOR; goto yy7; } diff --git a/re2c/test/posix_captures/repetition/17.i--flex-syntax.c b/re2c/test/posix_captures/repetition/17.i--flex-syntax.c index d5ac4f1c..89d8970f 100644 --- a/re2c/test/posix_captures/repetition/17.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/17.i--flex-syntax.c @@ -5,7 +5,7 @@ if ((YYLIMIT - YYCURSOR) < 6) YYFILL(6); yych = *(YYMARKER = YYCURSOR); if (yych >= 0x01) { - yyt3 = yyt6 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; } yy2: @@ -19,8 +19,8 @@ yy2: yy3: yych = *++YYCURSOR; if (yych >= 0x01) { - yyt4 = yyt5 = NULL; - yyt7 = yyt8 = yyt11 = YYCURSOR; + yyt2 = yyt3 = NULL; + yyt5 = yyt6 = yyt9 = YYCURSOR; goto yy5; } yy4: @@ -29,78 +29,78 @@ yy4: yy5: yych = *++YYCURSOR; if (yych <= 0x00) goto yy4; - yyt2 = yyt9 = yyt10 = NULL; - yyt1 = yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = yyt15 = NULL; + yyt10 = yyt11 = yyt12 = yyt13 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych >= 0x01) { - yyt9 = yyt10 = NULL; - yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = NULL; + yyt10 = yyt11 = yyt14 = YYCURSOR; goto yy8; } - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; yy7: { const size_t yynmatch = 10; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt5; - yypmatch[6] = yyt6; - yypmatch[7] = yyt7; - yypmatch[8] = yyt8; - yypmatch[10] = yyt9; - yypmatch[11] = yyt10; - yypmatch[12] = yyt11; - yypmatch[13] = yyt12; - yypmatch[14] = yyt13; - yypmatch[16] = yyt14; - yypmatch[17] = yyt1; - yypmatch[18] = yyt15; - yypmatch[19] = yyt2; - yypmatch[0] = yyt3; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[5] = yyt3; + yypmatch[6] = yyt4; + yypmatch[7] = yyt5; + yypmatch[8] = yyt6; + yypmatch[10] = yyt7; + yypmatch[11] = yyt8; + yypmatch[12] = yyt9; + yypmatch[13] = yyt10; + yypmatch[14] = yyt11; + yypmatch[16] = yyt12; + yypmatch[17] = yyt13; + yypmatch[18] = yyt14; + yypmatch[19] = yyt15; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt8; - yypmatch[9] = yyt13; + yypmatch[3] = yyt6; + yypmatch[9] = yyt11; yypmatch[15] = YYCURSOR; {} } yy8: yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt11 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt9 = yyt12; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } - yyt11 = yyt12 = NULL; - yyt10 = yyt13 = yyt14 = yyt15 = YYCURSOR; + yyt9 = yyt10 = NULL; + yyt8 = yyt11 = yyt12 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } ++YYCURSOR; - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt2 = yyt15 = NULL; - yyt1 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt14 = yyt15 = NULL; + yyt13 = YYCURSOR; goto yy7; } diff --git a/re2c/test/posix_captures/repetition/24.i--flex-syntax.c b/re2c/test/posix_captures/repetition/24.i--flex-syntax.c index d5ac4f1c..89d8970f 100644 --- a/re2c/test/posix_captures/repetition/24.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/24.i--flex-syntax.c @@ -5,7 +5,7 @@ if ((YYLIMIT - YYCURSOR) < 6) YYFILL(6); yych = *(YYMARKER = YYCURSOR); if (yych >= 0x01) { - yyt3 = yyt6 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; } yy2: @@ -19,8 +19,8 @@ yy2: yy3: yych = *++YYCURSOR; if (yych >= 0x01) { - yyt4 = yyt5 = NULL; - yyt7 = yyt8 = yyt11 = YYCURSOR; + yyt2 = yyt3 = NULL; + yyt5 = yyt6 = yyt9 = YYCURSOR; goto yy5; } yy4: @@ -29,78 +29,78 @@ yy4: yy5: yych = *++YYCURSOR; if (yych <= 0x00) goto yy4; - yyt2 = yyt9 = yyt10 = NULL; - yyt1 = yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = yyt15 = NULL; + yyt10 = yyt11 = yyt12 = yyt13 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych >= 0x01) { - yyt9 = yyt10 = NULL; - yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = NULL; + yyt10 = yyt11 = yyt14 = YYCURSOR; goto yy8; } - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; yy7: { const size_t yynmatch = 10; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt5; - yypmatch[6] = yyt6; - yypmatch[7] = yyt7; - yypmatch[8] = yyt8; - yypmatch[10] = yyt9; - yypmatch[11] = yyt10; - yypmatch[12] = yyt11; - yypmatch[13] = yyt12; - yypmatch[14] = yyt13; - yypmatch[16] = yyt14; - yypmatch[17] = yyt1; - yypmatch[18] = yyt15; - yypmatch[19] = yyt2; - yypmatch[0] = yyt3; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[5] = yyt3; + yypmatch[6] = yyt4; + yypmatch[7] = yyt5; + yypmatch[8] = yyt6; + yypmatch[10] = yyt7; + yypmatch[11] = yyt8; + yypmatch[12] = yyt9; + yypmatch[13] = yyt10; + yypmatch[14] = yyt11; + yypmatch[16] = yyt12; + yypmatch[17] = yyt13; + yypmatch[18] = yyt14; + yypmatch[19] = yyt15; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt8; - yypmatch[9] = yyt13; + yypmatch[3] = yyt6; + yypmatch[9] = yyt11; yypmatch[15] = YYCURSOR; {} } yy8: yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt11 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt9 = yyt12; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } - yyt11 = yyt12 = NULL; - yyt10 = yyt13 = yyt14 = yyt15 = YYCURSOR; + yyt9 = yyt10 = NULL; + yyt8 = yyt11 = yyt12 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } ++YYCURSOR; - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt2 = yyt15 = NULL; - yyt1 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt14 = yyt15 = NULL; + yyt13 = YYCURSOR; goto yy7; } diff --git a/re2c/test/posix_captures/repetition/31.i--flex-syntax.c b/re2c/test/posix_captures/repetition/31.i--flex-syntax.c index d5ac4f1c..89d8970f 100644 --- a/re2c/test/posix_captures/repetition/31.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/31.i--flex-syntax.c @@ -5,7 +5,7 @@ if ((YYLIMIT - YYCURSOR) < 6) YYFILL(6); yych = *(YYMARKER = YYCURSOR); if (yych >= 0x01) { - yyt3 = yyt6 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; } yy2: @@ -19,8 +19,8 @@ yy2: yy3: yych = *++YYCURSOR; if (yych >= 0x01) { - yyt4 = yyt5 = NULL; - yyt7 = yyt8 = yyt11 = YYCURSOR; + yyt2 = yyt3 = NULL; + yyt5 = yyt6 = yyt9 = YYCURSOR; goto yy5; } yy4: @@ -29,78 +29,78 @@ yy4: yy5: yych = *++YYCURSOR; if (yych <= 0x00) goto yy4; - yyt2 = yyt9 = yyt10 = NULL; - yyt1 = yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = yyt15 = NULL; + yyt10 = yyt11 = yyt12 = yyt13 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych >= 0x01) { - yyt9 = yyt10 = NULL; - yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = NULL; + yyt10 = yyt11 = yyt14 = YYCURSOR; goto yy8; } - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; yy7: { const size_t yynmatch = 10; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt5; - yypmatch[6] = yyt6; - yypmatch[7] = yyt7; - yypmatch[8] = yyt8; - yypmatch[10] = yyt9; - yypmatch[11] = yyt10; - yypmatch[12] = yyt11; - yypmatch[13] = yyt12; - yypmatch[14] = yyt13; - yypmatch[16] = yyt14; - yypmatch[17] = yyt1; - yypmatch[18] = yyt15; - yypmatch[19] = yyt2; - yypmatch[0] = yyt3; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[5] = yyt3; + yypmatch[6] = yyt4; + yypmatch[7] = yyt5; + yypmatch[8] = yyt6; + yypmatch[10] = yyt7; + yypmatch[11] = yyt8; + yypmatch[12] = yyt9; + yypmatch[13] = yyt10; + yypmatch[14] = yyt11; + yypmatch[16] = yyt12; + yypmatch[17] = yyt13; + yypmatch[18] = yyt14; + yypmatch[19] = yyt15; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt8; - yypmatch[9] = yyt13; + yypmatch[3] = yyt6; + yypmatch[9] = yyt11; yypmatch[15] = YYCURSOR; {} } yy8: yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt11 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt9 = yyt12; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } - yyt11 = yyt12 = NULL; - yyt10 = yyt13 = yyt14 = yyt15 = YYCURSOR; + yyt9 = yyt10 = NULL; + yyt8 = yyt11 = yyt12 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } ++YYCURSOR; - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt2 = yyt15 = NULL; - yyt1 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt14 = yyt15 = NULL; + yyt13 = YYCURSOR; goto yy7; } diff --git a/re2c/test/posix_captures/repetition/38.i--flex-syntax.c b/re2c/test/posix_captures/repetition/38.i--flex-syntax.c index d5ac4f1c..89d8970f 100644 --- a/re2c/test/posix_captures/repetition/38.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/38.i--flex-syntax.c @@ -5,7 +5,7 @@ if ((YYLIMIT - YYCURSOR) < 6) YYFILL(6); yych = *(YYMARKER = YYCURSOR); if (yych >= 0x01) { - yyt3 = yyt6 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; } yy2: @@ -19,8 +19,8 @@ yy2: yy3: yych = *++YYCURSOR; if (yych >= 0x01) { - yyt4 = yyt5 = NULL; - yyt7 = yyt8 = yyt11 = YYCURSOR; + yyt2 = yyt3 = NULL; + yyt5 = yyt6 = yyt9 = YYCURSOR; goto yy5; } yy4: @@ -29,78 +29,78 @@ yy4: yy5: yych = *++YYCURSOR; if (yych <= 0x00) goto yy4; - yyt2 = yyt9 = yyt10 = NULL; - yyt1 = yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = yyt15 = NULL; + yyt10 = yyt11 = yyt12 = yyt13 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych >= 0x01) { - yyt9 = yyt10 = NULL; - yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = NULL; + yyt10 = yyt11 = yyt14 = YYCURSOR; goto yy8; } - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; yy7: { const size_t yynmatch = 10; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt5; - yypmatch[6] = yyt6; - yypmatch[7] = yyt7; - yypmatch[8] = yyt8; - yypmatch[10] = yyt9; - yypmatch[11] = yyt10; - yypmatch[12] = yyt11; - yypmatch[13] = yyt12; - yypmatch[14] = yyt13; - yypmatch[16] = yyt14; - yypmatch[17] = yyt1; - yypmatch[18] = yyt15; - yypmatch[19] = yyt2; - yypmatch[0] = yyt3; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[5] = yyt3; + yypmatch[6] = yyt4; + yypmatch[7] = yyt5; + yypmatch[8] = yyt6; + yypmatch[10] = yyt7; + yypmatch[11] = yyt8; + yypmatch[12] = yyt9; + yypmatch[13] = yyt10; + yypmatch[14] = yyt11; + yypmatch[16] = yyt12; + yypmatch[17] = yyt13; + yypmatch[18] = yyt14; + yypmatch[19] = yyt15; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt8; - yypmatch[9] = yyt13; + yypmatch[3] = yyt6; + yypmatch[9] = yyt11; yypmatch[15] = YYCURSOR; {} } yy8: yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt11 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt9 = yyt12; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } - yyt11 = yyt12 = NULL; - yyt10 = yyt13 = yyt14 = yyt15 = YYCURSOR; + yyt9 = yyt10 = NULL; + yyt8 = yyt11 = yyt12 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } ++YYCURSOR; - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt2 = yyt15 = NULL; - yyt1 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt14 = yyt15 = NULL; + yyt13 = YYCURSOR; goto yy7; } diff --git a/re2c/test/posix_captures/repetition/45.i--flex-syntax.c b/re2c/test/posix_captures/repetition/45.i--flex-syntax.c index d5ac4f1c..89d8970f 100644 --- a/re2c/test/posix_captures/repetition/45.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/45.i--flex-syntax.c @@ -5,7 +5,7 @@ if ((YYLIMIT - YYCURSOR) < 6) YYFILL(6); yych = *(YYMARKER = YYCURSOR); if (yych >= 0x01) { - yyt3 = yyt6 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; } yy2: @@ -19,8 +19,8 @@ yy2: yy3: yych = *++YYCURSOR; if (yych >= 0x01) { - yyt4 = yyt5 = NULL; - yyt7 = yyt8 = yyt11 = YYCURSOR; + yyt2 = yyt3 = NULL; + yyt5 = yyt6 = yyt9 = YYCURSOR; goto yy5; } yy4: @@ -29,78 +29,78 @@ yy4: yy5: yych = *++YYCURSOR; if (yych <= 0x00) goto yy4; - yyt2 = yyt9 = yyt10 = NULL; - yyt1 = yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = yyt15 = NULL; + yyt10 = yyt11 = yyt12 = yyt13 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych >= 0x01) { - yyt9 = yyt10 = NULL; - yyt12 = yyt13 = yyt15 = YYCURSOR; + yyt7 = yyt8 = NULL; + yyt10 = yyt11 = yyt14 = YYCURSOR; goto yy8; } - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; yy7: { const size_t yynmatch = 10; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; - yypmatch[5] = yyt5; - yypmatch[6] = yyt6; - yypmatch[7] = yyt7; - yypmatch[8] = yyt8; - yypmatch[10] = yyt9; - yypmatch[11] = yyt10; - yypmatch[12] = yyt11; - yypmatch[13] = yyt12; - yypmatch[14] = yyt13; - yypmatch[16] = yyt14; - yypmatch[17] = yyt1; - yypmatch[18] = yyt15; - yypmatch[19] = yyt2; - yypmatch[0] = yyt3; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; + yypmatch[5] = yyt3; + yypmatch[6] = yyt4; + yypmatch[7] = yyt5; + yypmatch[8] = yyt6; + yypmatch[10] = yyt7; + yypmatch[11] = yyt8; + yypmatch[12] = yyt9; + yypmatch[13] = yyt10; + yypmatch[14] = yyt11; + yypmatch[16] = yyt12; + yypmatch[17] = yyt13; + yypmatch[18] = yyt14; + yypmatch[19] = yyt15; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt8; - yypmatch[9] = yyt13; + yypmatch[3] = yyt6; + yypmatch[9] = yyt11; yypmatch[15] = YYCURSOR; {} } yy8: yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt11 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt9 = yyt12; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } - yyt11 = yyt12 = NULL; - yyt10 = yyt13 = yyt14 = yyt15 = YYCURSOR; + yyt9 = yyt10 = NULL; + yyt8 = yyt11 = yyt12 = yyt14 = YYCURSOR; yych = *++YYCURSOR; if (yych <= 0x00) { - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt1 = yyt14 = NULL; - yyt2 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt12 = yyt13 = NULL; + yyt15 = YYCURSOR; goto yy7; } ++YYCURSOR; - yyt4 = yyt3; - yyt5 = yyt1; - yyt6 = yyt2; - yyt7 = yyt2; - yyt8 = yyt1; - yyt9 = yyt1; - yyt2 = yyt15 = NULL; - yyt1 = YYCURSOR; + yyt2 = yyt1; + yyt3 = yyt13; + yyt4 = yyt15; + yyt5 = yyt15; + yyt6 = yyt13; + yyt7 = yyt13; + yyt14 = yyt15 = NULL; + yyt13 = YYCURSOR; goto yy7; } diff --git a/re2c/test/posix_captures/repetition/50.i--flex-syntax.c b/re2c/test/posix_captures/repetition/50.i--flex-syntax.c index 97f145ad..59a5a5f8 100644 --- a/re2c/test/posix_captures/repetition/50.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/50.i--flex-syntax.c @@ -7,7 +7,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'X': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'Y': - yyt1 = yyt4 = YYCURSOR; + yyt3 = yyt4 = YYCURSOR; goto yy7; default: goto yy6; } @@ -42,10 +42,10 @@ yy6: switch (yych) { case 0x00: goto yy4; case 'Y': - yyt3 = yyt4 = YYCURSOR; + yyt2 = yyt3 = YYCURSOR; goto yy9; default: - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy5; } yy7: @@ -53,7 +53,7 @@ yy7: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'Y': - yyt3 = yyt4 = YYCURSOR; + yyt2 = yyt3 = YYCURSOR; goto yy9; default: goto yy10; } @@ -61,9 +61,9 @@ yy8: { const size_t yynmatch = 2; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt3; - yypmatch[3] = yyt4; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; + yypmatch[3] = yyt3; yypmatch[1] = YYCURSOR; {} } @@ -75,15 +75,15 @@ yy9: yy10: switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt4; goto yy8; case 'Y': - yyt1 = yyt3; - yyt3 = yyt4 = YYCURSOR; + yyt4 = yyt2; + yyt2 = yyt3 = YYCURSOR; goto yy9; default: - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy5; } } diff --git a/re2c/test/posix_captures/repetition/51.i--flex-syntax.c b/re2c/test/posix_captures/repetition/51.i--flex-syntax.c index c20362be..c31cdfa4 100644 --- a/re2c/test/posix_captures/repetition/51.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/51.i--flex-syntax.c @@ -7,7 +7,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'X': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'Y': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy7; default: goto yy6; } @@ -42,10 +42,10 @@ yy6: switch (yych) { case 0x00: goto yy4; case 'Y': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; default: - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; } yy7: @@ -53,7 +53,7 @@ yy7: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'Y': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; default: goto yy10; } @@ -61,8 +61,8 @@ yy8: { const size_t yynmatch = 2; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; yypmatch[1] = YYCURSOR; yypmatch[3] = YYCURSOR - 1; {} @@ -75,15 +75,15 @@ yy9: yy10: switch (yych) { case 0x00: - yyt3 = yyt1; + yyt2 = yyt3; goto yy8; case 'Y': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy9; default: - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt3; + yyt3 = YYCURSOR; goto yy5; } } diff --git a/re2c/test/posix_captures/repetition/69.i--flex-syntax.c b/re2c/test/posix_captures/repetition/69.i--flex-syntax.c index 95010548..b84a7db0 100644 --- a/re2c/test/posix_captures/repetition/69.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/69.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy8; default: goto yy2; } @@ -31,31 +31,31 @@ yy3: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy10; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy5: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; + yypmatch[4] = yyt3; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt4; + yypmatch[3] = yyt3; yypmatch[5] = YYCURSOR; {} } @@ -72,7 +72,7 @@ yy7: if (yyaccept == 0) { goto yy2; } else { - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; } yy8: @@ -82,21 +82,21 @@ yy8: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy10: @@ -106,21 +106,21 @@ yy10: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy14; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy11: @@ -130,7 +130,7 @@ yy11: switch (yych) { case 'd': goto yy11; default: - yyt3 = yyt1; + yyt2 = yyt4; goto yy5; } yy13: @@ -148,19 +148,19 @@ yy14: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt1 = yyt4; + yyt4 = yyt3; goto yy8; default: - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; } } diff --git a/re2c/test/posix_captures/repetition/74.i--flex-syntax.c b/re2c/test/posix_captures/repetition/74.i--flex-syntax.c index 25e00387..9bfeb189 100644 --- a/re2c/test/posix_captures/repetition/74.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/74.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy5; case 'c': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy7; default: goto yy2; } @@ -27,7 +27,7 @@ yy2: } yy3: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy8; case 'b': goto yy9; @@ -38,11 +38,11 @@ yy4: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[4] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[4] = yyt2; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -57,21 +57,21 @@ yy6: switch (yyaccept) { case 0: goto yy2; case 1: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; case 2: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy7: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy8; case 'b': goto yy14; @@ -82,21 +82,21 @@ yy8: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy16; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy9: @@ -104,19 +104,19 @@ yy9: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy14; case 'c': yyt4 = YYCURSOR; goto yy18; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy10: @@ -124,21 +124,21 @@ yy10: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy19; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy11: @@ -164,7 +164,7 @@ yy14: } yy15: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy21; case 'b': goto yy22; @@ -176,27 +176,27 @@ yy16: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy19; case 'c': yyt4 = YYCURSOR; goto yy24; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy17: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy21; case 'b': goto yy25; @@ -208,18 +208,18 @@ yy18: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy19; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'd': goto yy10; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy19: @@ -238,21 +238,21 @@ yy21: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy28; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy22: @@ -260,19 +260,19 @@ yy22: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy21; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'c': yyt4 = YYCURSOR; goto yy30; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy23: @@ -280,21 +280,21 @@ yy23: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy24: @@ -302,18 +302,18 @@ yy24: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy21; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy23; case 'd': goto yy17; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy25: @@ -330,7 +330,7 @@ yy26: } yy27: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy33; case 'b': goto yy34; @@ -342,27 +342,27 @@ yy28: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': yyt4 = YYCURSOR; goto yy36; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy29: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy33; case 'b': goto yy37; @@ -374,18 +374,18 @@ yy30: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': goto yy23; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy31: @@ -404,21 +404,21 @@ yy33: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy40; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy34: @@ -426,19 +426,19 @@ yy34: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy33; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy37; case 'c': yyt4 = YYCURSOR; goto yy42; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy35: @@ -446,21 +446,21 @@ yy35: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy36: @@ -468,18 +468,18 @@ yy36: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy33; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy37; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy35; case 'd': goto yy29; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy37: @@ -496,7 +496,7 @@ yy38: } yy39: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy45; case 'b': goto yy46; @@ -508,27 +508,27 @@ yy40: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': yyt4 = YYCURSOR; goto yy48; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy41: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy45; case 'b': goto yy49; @@ -540,18 +540,18 @@ yy42: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': goto yy35; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy43: @@ -570,21 +570,21 @@ yy45: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy52; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy46: @@ -592,19 +592,19 @@ yy46: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy45; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy49; case 'c': yyt4 = YYCURSOR; goto yy54; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy47: @@ -612,21 +612,21 @@ yy47: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy48: @@ -634,18 +634,18 @@ yy48: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy45; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy49; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy47; case 'd': goto yy41; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy49: @@ -662,7 +662,7 @@ yy50: } yy51: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy57; case 'b': goto yy58; @@ -674,27 +674,27 @@ yy52: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': yyt4 = YYCURSOR; goto yy60; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy53: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy57; case 'b': goto yy61; @@ -706,18 +706,18 @@ yy54: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': goto yy47; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy55: @@ -737,12 +737,12 @@ yy57: switch (yych) { case 'b': goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy58: @@ -750,43 +750,43 @@ yy58: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy57; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy63; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy59: yych = *++YYCURSOR; - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy12; yy60: yyaccept = 3; yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy57; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy61; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy59; case 'd': goto yy53; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy61: @@ -806,7 +806,7 @@ yy63: switch (yych) { case 'd': goto yy59; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy64: diff --git a/re2c/test/posix_captures/repetition/75.i--flex-syntax.c b/re2c/test/posix_captures/repetition/75.i--flex-syntax.c index e045dfa9..6277626a 100644 --- a/re2c/test/posix_captures/repetition/75.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/75.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; case 'c': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy6; default: goto yy2; } @@ -29,13 +29,13 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy7; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy9; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy10; default: goto yy4; } @@ -44,15 +44,15 @@ yy4: switch (yyaccept) { case 0: goto yy2; case 1: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 2: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy5: @@ -65,19 +65,19 @@ yy6: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy7; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy10; default: goto yy4; } yy7: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy13; case 'b': goto yy14; @@ -88,11 +88,11 @@ yy8: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[4] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[4] = yyt2; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -100,10 +100,10 @@ yy9: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy7; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'c': yyt4 = YYCURSOR; @@ -113,7 +113,7 @@ yy9: yy10: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy13; case 'b': goto yy19; @@ -136,21 +136,21 @@ yy13: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy22; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy14: @@ -158,19 +158,19 @@ yy14: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 'c': yyt4 = YYCURSOR; goto yy24; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy15: @@ -178,21 +178,21 @@ yy15: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy25; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy16: @@ -209,18 +209,18 @@ yy18: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy15; case 'd': goto yy10; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy19: @@ -237,7 +237,7 @@ yy20: } yy21: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy27; case 'b': goto yy28; @@ -249,27 +249,27 @@ yy22: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy25; case 'c': yyt4 = YYCURSOR; goto yy30; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy23: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy27; case 'b': goto yy31; @@ -281,18 +281,18 @@ yy24: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy25; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'd': goto yy15; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy25: @@ -311,21 +311,21 @@ yy27: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy34; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy28: @@ -333,19 +333,19 @@ yy28: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy27; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy31; case 'c': yyt4 = YYCURSOR; goto yy36; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy29: @@ -353,21 +353,21 @@ yy29: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy30: @@ -375,18 +375,18 @@ yy30: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy27; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy31; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy29; case 'd': goto yy23; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy31: @@ -403,7 +403,7 @@ yy32: } yy33: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy39; case 'b': goto yy40; @@ -415,27 +415,27 @@ yy34: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': yyt4 = YYCURSOR; goto yy42; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy35: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy39; case 'b': goto yy43; @@ -447,18 +447,18 @@ yy36: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': goto yy29; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy37: @@ -477,21 +477,21 @@ yy39: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy46; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy40: @@ -499,19 +499,19 @@ yy40: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy39; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy43; case 'c': yyt4 = YYCURSOR; goto yy48; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy41: @@ -519,21 +519,21 @@ yy41: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy42: @@ -541,18 +541,18 @@ yy42: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy39; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy43; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy41; case 'd': goto yy35; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy43: @@ -569,7 +569,7 @@ yy44: } yy45: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy51; case 'b': goto yy52; @@ -581,27 +581,27 @@ yy46: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': yyt4 = YYCURSOR; goto yy54; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy47: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy51; case 'b': goto yy55; @@ -613,18 +613,18 @@ yy48: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': goto yy41; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy49: @@ -643,21 +643,21 @@ yy51: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy58; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy52: @@ -665,19 +665,19 @@ yy52: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy51; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy55; case 'c': yyt4 = YYCURSOR; goto yy60; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy53: @@ -685,21 +685,21 @@ yy53: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy54: @@ -707,18 +707,18 @@ yy54: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy51; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy55; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy53; case 'd': goto yy47; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy55: @@ -738,10 +738,10 @@ yy57: switch (yych) { case 'b': goto yy59; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy58: @@ -749,44 +749,44 @@ yy58: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy63; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy59: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy17; yy60: yyaccept = 3; yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': goto yy53; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy61: @@ -806,8 +806,8 @@ yy63: switch (yych) { case 'd': goto yy59; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy64: diff --git a/re2c/test/posix_captures/repetition/76.i--flex-syntax.c b/re2c/test/posix_captures/repetition/76.i--flex-syntax.c index 9f984a37..90d17b43 100644 --- a/re2c/test/posix_captures/repetition/76.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/76.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; case 'c': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy6; default: goto yy2; } @@ -38,15 +38,15 @@ yy4: switch (yyaccept) { case 0: goto yy2; case 1: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; case 2: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy5: @@ -67,13 +67,13 @@ yy7: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy14; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; default: goto yy4; } @@ -89,13 +89,13 @@ yy9: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; default: goto yy4; } @@ -113,7 +113,7 @@ yy11: } yy12: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy19; case 'b': goto yy20; @@ -124,11 +124,11 @@ yy13: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[4] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[4] = yyt2; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -136,10 +136,10 @@ yy14: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'c': yyt4 = YYCURSOR; @@ -149,7 +149,7 @@ yy14: yy15: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy19; case 'b': goto yy25; @@ -160,13 +160,13 @@ yy16: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'd': goto yy9; default: goto yy4; @@ -187,21 +187,21 @@ yy19: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy28; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy20: @@ -209,19 +209,19 @@ yy20: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'c': yyt4 = YYCURSOR; goto yy30; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy22; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy21: @@ -229,21 +229,21 @@ yy21: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy22: @@ -260,18 +260,18 @@ yy24: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy21; case 'd': goto yy15; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy25: @@ -288,7 +288,7 @@ yy26: } yy27: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy33; case 'b': goto yy34; @@ -300,27 +300,27 @@ yy28: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': yyt4 = YYCURSOR; goto yy36; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy29: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy33; case 'b': goto yy37; @@ -332,18 +332,18 @@ yy30: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': goto yy21; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy31: @@ -362,21 +362,21 @@ yy33: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy40; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy34: @@ -384,19 +384,19 @@ yy34: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy33; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy37; case 'c': yyt4 = YYCURSOR; goto yy42; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy22; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy35: @@ -404,21 +404,21 @@ yy35: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy36: @@ -426,18 +426,18 @@ yy36: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy33; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy37; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy35; case 'd': goto yy29; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy37: @@ -454,7 +454,7 @@ yy38: } yy39: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy45; case 'b': goto yy46; @@ -466,27 +466,27 @@ yy40: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': yyt4 = YYCURSOR; goto yy48; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy41: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy45; case 'b': goto yy49; @@ -498,18 +498,18 @@ yy42: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': goto yy35; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy43: @@ -528,21 +528,21 @@ yy45: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy52; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy46: @@ -550,19 +550,19 @@ yy46: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy45; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy49; case 'c': yyt4 = YYCURSOR; goto yy54; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy22; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy47: @@ -570,21 +570,21 @@ yy47: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy48: @@ -592,18 +592,18 @@ yy48: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy45; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy49; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy47; case 'd': goto yy41; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy49: @@ -620,7 +620,7 @@ yy50: } yy51: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy57; case 'b': goto yy58; @@ -632,27 +632,27 @@ yy52: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': yyt4 = YYCURSOR; goto yy60; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy53: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy57; case 'b': goto yy61; @@ -664,18 +664,18 @@ yy54: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': goto yy47; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy55: @@ -695,12 +695,12 @@ yy57: switch (yych) { case 'b': goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy58: @@ -708,43 +708,43 @@ yy58: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy57; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy63; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy22; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy59: yych = *++YYCURSOR; - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy23; yy60: yyaccept = 3; yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy57; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy61; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy59; case 'd': goto yy53; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy61: @@ -764,7 +764,7 @@ yy63: switch (yych) { case 'd': goto yy59; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy64: diff --git a/re2c/test/posix_captures/repetition/77.i--flex-syntax.c b/re2c/test/posix_captures/repetition/77.i--flex-syntax.c index 367f78e0..12b79a1e 100644 --- a/re2c/test/posix_captures/repetition/77.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/77.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; case 'c': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy6; default: goto yy2; } @@ -38,15 +38,15 @@ yy4: switch (yyaccept) { case 0: goto yy2; case 1: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 2: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy5: @@ -103,13 +103,13 @@ yy12: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy18; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy20; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; default: goto yy4; } @@ -125,13 +125,13 @@ yy14: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy18; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; default: goto yy4; } @@ -158,7 +158,7 @@ yy17: } yy18: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy25; case 'b': goto yy26; @@ -169,11 +169,11 @@ yy19: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[4] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[4] = yyt2; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -181,10 +181,10 @@ yy20: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy18; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'c': yyt4 = YYCURSOR; @@ -194,7 +194,7 @@ yy20: yy21: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy25; case 'b': goto yy31; @@ -205,13 +205,13 @@ yy22: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy18; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'd': goto yy14; default: goto yy4; @@ -232,21 +232,21 @@ yy25: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy34; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy26: @@ -254,19 +254,19 @@ yy26: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy31; case 'c': yyt4 = YYCURSOR; goto yy36; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy28; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; } yy27: @@ -274,21 +274,21 @@ yy27: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy28: @@ -305,18 +305,18 @@ yy30: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy31; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy27; case 'd': goto yy21; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy31: @@ -333,7 +333,7 @@ yy32: } yy33: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy39; case 'b': goto yy40; @@ -345,27 +345,27 @@ yy34: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': yyt4 = YYCURSOR; goto yy42; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy35: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy39; case 'b': goto yy43; @@ -377,18 +377,18 @@ yy36: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': goto yy27; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy37: @@ -407,21 +407,21 @@ yy39: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy46; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy40: @@ -429,19 +429,19 @@ yy40: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy39; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy43; case 'c': yyt4 = YYCURSOR; goto yy48; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy28; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; } yy41: @@ -449,21 +449,21 @@ yy41: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy42: @@ -471,18 +471,18 @@ yy42: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy39; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy43; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy41; case 'd': goto yy35; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy43: @@ -499,7 +499,7 @@ yy44: } yy45: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy51; case 'b': goto yy52; @@ -511,27 +511,27 @@ yy46: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': yyt4 = YYCURSOR; goto yy54; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy47: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy51; case 'b': goto yy55; @@ -543,18 +543,18 @@ yy48: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': goto yy41; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy49: @@ -573,21 +573,21 @@ yy51: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy58; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy52: @@ -595,19 +595,19 @@ yy52: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy51; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy55; case 'c': yyt4 = YYCURSOR; goto yy60; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy28; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; } yy53: @@ -615,21 +615,21 @@ yy53: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy54: @@ -637,18 +637,18 @@ yy54: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy51; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy55; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy53; case 'd': goto yy47; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy55: @@ -668,10 +668,10 @@ yy57: switch (yych) { case 'b': goto yy59; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy28; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; } yy58: @@ -679,44 +679,44 @@ yy58: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy63; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy59: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy29; yy60: yyaccept = 3; yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': goto yy53; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy61: @@ -736,8 +736,8 @@ yy63: switch (yych) { case 'd': goto yy59; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy64: diff --git a/re2c/test/posix_captures/repetition/79.i--flex-syntax.c b/re2c/test/posix_captures/repetition/79.i--flex-syntax.c index 95010548..b84a7db0 100644 --- a/re2c/test/posix_captures/repetition/79.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/79.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy8; default: goto yy2; } @@ -31,31 +31,31 @@ yy3: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy10; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy5: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; + yypmatch[4] = yyt3; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt4; + yypmatch[3] = yyt3; yypmatch[5] = YYCURSOR; {} } @@ -72,7 +72,7 @@ yy7: if (yyaccept == 0) { goto yy2; } else { - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; } yy8: @@ -82,21 +82,21 @@ yy8: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy10: @@ -106,21 +106,21 @@ yy10: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy14; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy11: @@ -130,7 +130,7 @@ yy11: switch (yych) { case 'd': goto yy11; default: - yyt3 = yyt1; + yyt2 = yyt4; goto yy5; } yy13: @@ -148,19 +148,19 @@ yy14: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt1 = yyt4; + yyt4 = yyt3; goto yy8; default: - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; } } diff --git a/re2c/test/posix_captures/repetition/81.i--flex-syntax.c b/re2c/test/posix_captures/repetition/81.i--flex-syntax.c index 95010548..b84a7db0 100644 --- a/re2c/test/posix_captures/repetition/81.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/81.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy8; default: goto yy2; } @@ -31,31 +31,31 @@ yy3: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy10; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy5: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; + yypmatch[4] = yyt3; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt4; + yypmatch[3] = yyt3; yypmatch[5] = YYCURSOR; {} } @@ -72,7 +72,7 @@ yy7: if (yyaccept == 0) { goto yy2; } else { - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; } yy8: @@ -82,21 +82,21 @@ yy8: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy10: @@ -106,21 +106,21 @@ yy10: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy14; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy11: @@ -130,7 +130,7 @@ yy11: switch (yych) { case 'd': goto yy11; default: - yyt3 = yyt1; + yyt2 = yyt4; goto yy5; } yy13: @@ -148,19 +148,19 @@ yy14: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt1 = yyt4; + yyt4 = yyt3; goto yy8; default: - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; } } diff --git a/re2c/test/posix_captures/repetition/86.i--flex-syntax.c b/re2c/test/posix_captures/repetition/86.i--flex-syntax.c index 25e00387..9bfeb189 100644 --- a/re2c/test/posix_captures/repetition/86.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/86.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy5; case 'c': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy7; default: goto yy2; } @@ -27,7 +27,7 @@ yy2: } yy3: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy8; case 'b': goto yy9; @@ -38,11 +38,11 @@ yy4: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[4] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[4] = yyt2; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -57,21 +57,21 @@ yy6: switch (yyaccept) { case 0: goto yy2; case 1: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; case 2: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy7: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy8; case 'b': goto yy14; @@ -82,21 +82,21 @@ yy8: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy16; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy9: @@ -104,19 +104,19 @@ yy9: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy14; case 'c': yyt4 = YYCURSOR; goto yy18; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy10: @@ -124,21 +124,21 @@ yy10: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy19; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy11: @@ -164,7 +164,7 @@ yy14: } yy15: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy21; case 'b': goto yy22; @@ -176,27 +176,27 @@ yy16: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy19; case 'c': yyt4 = YYCURSOR; goto yy24; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy17: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy21; case 'b': goto yy25; @@ -208,18 +208,18 @@ yy18: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy19; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'd': goto yy10; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy19: @@ -238,21 +238,21 @@ yy21: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy28; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy22: @@ -260,19 +260,19 @@ yy22: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy21; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'c': yyt4 = YYCURSOR; goto yy30; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy23: @@ -280,21 +280,21 @@ yy23: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy24: @@ -302,18 +302,18 @@ yy24: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy21; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy23; case 'd': goto yy17; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy25: @@ -330,7 +330,7 @@ yy26: } yy27: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy33; case 'b': goto yy34; @@ -342,27 +342,27 @@ yy28: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': yyt4 = YYCURSOR; goto yy36; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy29: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy33; case 'b': goto yy37; @@ -374,18 +374,18 @@ yy30: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': goto yy23; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy31: @@ -404,21 +404,21 @@ yy33: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy40; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy34: @@ -426,19 +426,19 @@ yy34: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy33; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy37; case 'c': yyt4 = YYCURSOR; goto yy42; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy35: @@ -446,21 +446,21 @@ yy35: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy36: @@ -468,18 +468,18 @@ yy36: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy33; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy37; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy35; case 'd': goto yy29; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy37: @@ -496,7 +496,7 @@ yy38: } yy39: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy45; case 'b': goto yy46; @@ -508,27 +508,27 @@ yy40: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': yyt4 = YYCURSOR; goto yy48; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy41: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy45; case 'b': goto yy49; @@ -540,18 +540,18 @@ yy42: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': goto yy35; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy43: @@ -570,21 +570,21 @@ yy45: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy52; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy46: @@ -592,19 +592,19 @@ yy46: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy45; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy49; case 'c': yyt4 = YYCURSOR; goto yy54; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy47: @@ -612,21 +612,21 @@ yy47: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy48: @@ -634,18 +634,18 @@ yy48: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy45; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy49; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy47; case 'd': goto yy41; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy49: @@ -662,7 +662,7 @@ yy50: } yy51: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy57; case 'b': goto yy58; @@ -674,27 +674,27 @@ yy52: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': yyt4 = YYCURSOR; goto yy60; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy53: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy57; case 'b': goto yy61; @@ -706,18 +706,18 @@ yy54: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': goto yy47; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy55: @@ -737,12 +737,12 @@ yy57: switch (yych) { case 'b': goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy11; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy4; } yy58: @@ -750,43 +750,43 @@ yy58: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy57; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy63; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy59: yych = *++YYCURSOR; - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy12; yy60: yyaccept = 3; yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy57; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy61; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy59; case 'd': goto yy53; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy4; } yy61: @@ -806,7 +806,7 @@ yy63: switch (yych) { case 'd': goto yy59; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; } yy64: diff --git a/re2c/test/posix_captures/repetition/87.i--flex-syntax.c b/re2c/test/posix_captures/repetition/87.i--flex-syntax.c index e045dfa9..6277626a 100644 --- a/re2c/test/posix_captures/repetition/87.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/87.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; case 'c': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy6; default: goto yy2; } @@ -29,13 +29,13 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy7; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy9; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy10; default: goto yy4; } @@ -44,15 +44,15 @@ yy4: switch (yyaccept) { case 0: goto yy2; case 1: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 2: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy5: @@ -65,19 +65,19 @@ yy6: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy7; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy10; default: goto yy4; } yy7: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy13; case 'b': goto yy14; @@ -88,11 +88,11 @@ yy8: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[4] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[4] = yyt2; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -100,10 +100,10 @@ yy9: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy7; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'c': yyt4 = YYCURSOR; @@ -113,7 +113,7 @@ yy9: yy10: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy13; case 'b': goto yy19; @@ -136,21 +136,21 @@ yy13: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy22; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy14: @@ -158,19 +158,19 @@ yy14: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 'c': yyt4 = YYCURSOR; goto yy24; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy15: @@ -178,21 +178,21 @@ yy15: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy25; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy16: @@ -209,18 +209,18 @@ yy18: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy15; case 'd': goto yy10; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy19: @@ -237,7 +237,7 @@ yy20: } yy21: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy27; case 'b': goto yy28; @@ -249,27 +249,27 @@ yy22: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy25; case 'c': yyt4 = YYCURSOR; goto yy30; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy23: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy27; case 'b': goto yy31; @@ -281,18 +281,18 @@ yy24: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy25; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'd': goto yy15; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy25: @@ -311,21 +311,21 @@ yy27: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy34; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy28: @@ -333,19 +333,19 @@ yy28: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy27; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy31; case 'c': yyt4 = YYCURSOR; goto yy36; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy29: @@ -353,21 +353,21 @@ yy29: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy30: @@ -375,18 +375,18 @@ yy30: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy27; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy31; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy29; case 'd': goto yy23; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy31: @@ -403,7 +403,7 @@ yy32: } yy33: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy39; case 'b': goto yy40; @@ -415,27 +415,27 @@ yy34: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': yyt4 = YYCURSOR; goto yy42; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy35: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy39; case 'b': goto yy43; @@ -447,18 +447,18 @@ yy36: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': goto yy29; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy37: @@ -477,21 +477,21 @@ yy39: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy46; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy40: @@ -499,19 +499,19 @@ yy40: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy39; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy43; case 'c': yyt4 = YYCURSOR; goto yy48; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy41: @@ -519,21 +519,21 @@ yy41: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy42: @@ -541,18 +541,18 @@ yy42: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy39; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy43; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy41; case 'd': goto yy35; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy43: @@ -569,7 +569,7 @@ yy44: } yy45: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy51; case 'b': goto yy52; @@ -581,27 +581,27 @@ yy46: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': yyt4 = YYCURSOR; goto yy54; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy47: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy51; case 'b': goto yy55; @@ -613,18 +613,18 @@ yy48: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': goto yy41; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy49: @@ -643,21 +643,21 @@ yy51: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy58; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy52: @@ -665,19 +665,19 @@ yy52: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy51; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy55; case 'c': yyt4 = YYCURSOR; goto yy60; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy53: @@ -685,21 +685,21 @@ yy53: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy54: @@ -707,18 +707,18 @@ yy54: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy51; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy55; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy53; case 'd': goto yy47; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy55: @@ -738,10 +738,10 @@ yy57: switch (yych) { case 'b': goto yy59; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy16; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; } yy58: @@ -749,44 +749,44 @@ yy58: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy63; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy16; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy59: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy17; yy60: yyaccept = 3; yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': goto yy53; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy8; } yy61: @@ -806,8 +806,8 @@ yy63: switch (yych) { case 'd': goto yy59; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy8; } yy64: diff --git a/re2c/test/posix_captures/repetition/88.i--flex-syntax.c b/re2c/test/posix_captures/repetition/88.i--flex-syntax.c index 9f984a37..90d17b43 100644 --- a/re2c/test/posix_captures/repetition/88.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/88.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; case 'c': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy6; default: goto yy2; } @@ -38,15 +38,15 @@ yy4: switch (yyaccept) { case 0: goto yy2; case 1: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; case 2: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy5: @@ -67,13 +67,13 @@ yy7: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy14; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; default: goto yy4; } @@ -89,13 +89,13 @@ yy9: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; default: goto yy4; } @@ -113,7 +113,7 @@ yy11: } yy12: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy19; case 'b': goto yy20; @@ -124,11 +124,11 @@ yy13: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[4] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[4] = yyt2; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -136,10 +136,10 @@ yy14: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'c': yyt4 = YYCURSOR; @@ -149,7 +149,7 @@ yy14: yy15: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy19; case 'b': goto yy25; @@ -160,13 +160,13 @@ yy16: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy12; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy17; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy15; case 'd': goto yy9; default: goto yy4; @@ -187,21 +187,21 @@ yy19: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy28; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy20: @@ -209,19 +209,19 @@ yy20: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'c': yyt4 = YYCURSOR; goto yy30; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy22; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy21: @@ -229,21 +229,21 @@ yy21: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy22: @@ -260,18 +260,18 @@ yy24: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy21; case 'd': goto yy15; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy25: @@ -288,7 +288,7 @@ yy26: } yy27: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy33; case 'b': goto yy34; @@ -300,27 +300,27 @@ yy28: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': yyt4 = YYCURSOR; goto yy36; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy29: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy33; case 'b': goto yy37; @@ -332,18 +332,18 @@ yy30: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy27; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy31; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy29; case 'd': goto yy21; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy31: @@ -362,21 +362,21 @@ yy33: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy40; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy34: @@ -384,19 +384,19 @@ yy34: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy33; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy37; case 'c': yyt4 = YYCURSOR; goto yy42; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy22; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy35: @@ -404,21 +404,21 @@ yy35: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy36: @@ -426,18 +426,18 @@ yy36: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy33; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy37; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy35; case 'd': goto yy29; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy37: @@ -454,7 +454,7 @@ yy38: } yy39: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy45; case 'b': goto yy46; @@ -466,27 +466,27 @@ yy40: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': yyt4 = YYCURSOR; goto yy48; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy41: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy45; case 'b': goto yy49; @@ -498,18 +498,18 @@ yy42: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy39; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy43; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy41; case 'd': goto yy35; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy43: @@ -528,21 +528,21 @@ yy45: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy52; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy46: @@ -550,19 +550,19 @@ yy46: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy45; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy49; case 'c': yyt4 = YYCURSOR; goto yy54; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy22; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy47: @@ -570,21 +570,21 @@ yy47: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy48: @@ -592,18 +592,18 @@ yy48: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy45; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy49; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy47; case 'd': goto yy41; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy49: @@ -620,7 +620,7 @@ yy50: } yy51: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy57; case 'b': goto yy58; @@ -632,27 +632,27 @@ yy52: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': yyt4 = YYCURSOR; goto yy60; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy53: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy57; case 'b': goto yy61; @@ -664,18 +664,18 @@ yy54: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy51; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy55; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy53; case 'd': goto yy47; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy55: @@ -695,12 +695,12 @@ yy57: switch (yych) { case 'b': goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy22; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy13; } yy58: @@ -708,43 +708,43 @@ yy58: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy57; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy63; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy22; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy59: yych = *++YYCURSOR; - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy23; yy60: yyaccept = 3; yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy57; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy61; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy59; case 'd': goto yy53; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy13; } yy61: @@ -764,7 +764,7 @@ yy63: switch (yych) { case 'd': goto yy59; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy13; } yy64: diff --git a/re2c/test/posix_captures/repetition/89.i--flex-syntax.c b/re2c/test/posix_captures/repetition/89.i--flex-syntax.c index 367f78e0..12b79a1e 100644 --- a/re2c/test/posix_captures/repetition/89.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/89.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; case 'c': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy6; default: goto yy2; } @@ -38,15 +38,15 @@ yy4: switch (yyaccept) { case 0: goto yy2; case 1: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; case 2: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy5: @@ -103,13 +103,13 @@ yy12: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy18; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy20; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; default: goto yy4; } @@ -125,13 +125,13 @@ yy14: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy18; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; default: goto yy4; } @@ -158,7 +158,7 @@ yy17: } yy18: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy25; case 'b': goto yy26; @@ -169,11 +169,11 @@ yy19: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt1; - yypmatch[4] = yyt3; + yypmatch[0] = yyt1; + yypmatch[2] = yyt3; + yypmatch[4] = yyt2; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt3; + yypmatch[3] = yyt2; yypmatch[5] = YYCURSOR; {} } @@ -181,10 +181,10 @@ yy20: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy18; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'c': yyt4 = YYCURSOR; @@ -194,7 +194,7 @@ yy20: yy21: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy25; case 'b': goto yy31; @@ -205,13 +205,13 @@ yy22: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy18; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy23; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy21; case 'd': goto yy14; default: goto yy4; @@ -232,21 +232,21 @@ yy25: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy34; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy26: @@ -254,19 +254,19 @@ yy26: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy31; case 'c': yyt4 = YYCURSOR; goto yy36; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy28; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; } yy27: @@ -274,21 +274,21 @@ yy27: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy28: @@ -305,18 +305,18 @@ yy30: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy25; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy31; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy27; case 'd': goto yy21; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy31: @@ -333,7 +333,7 @@ yy32: } yy33: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy39; case 'b': goto yy40; @@ -345,27 +345,27 @@ yy34: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': yyt4 = YYCURSOR; goto yy42; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy35: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy39; case 'b': goto yy43; @@ -377,18 +377,18 @@ yy36: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy33; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy37; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy35; case 'd': goto yy27; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy37: @@ -407,21 +407,21 @@ yy39: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy46; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy40: @@ -429,19 +429,19 @@ yy40: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy39; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy43; case 'c': yyt4 = YYCURSOR; goto yy48; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy28; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; } yy41: @@ -449,21 +449,21 @@ yy41: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy42: @@ -471,18 +471,18 @@ yy42: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy39; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy43; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy41; case 'd': goto yy35; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy43: @@ -499,7 +499,7 @@ yy44: } yy45: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy51; case 'b': goto yy52; @@ -511,27 +511,27 @@ yy46: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': yyt4 = YYCURSOR; goto yy54; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy47: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'a': goto yy51; case 'b': goto yy55; @@ -543,18 +543,18 @@ yy48: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy45; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy49; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy47; case 'd': goto yy41; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy49: @@ -573,21 +573,21 @@ yy51: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy58; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy52: @@ -595,19 +595,19 @@ yy52: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy51; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy55; case 'c': yyt4 = YYCURSOR; goto yy60; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy28; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; } yy53: @@ -615,21 +615,21 @@ yy53: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy54: @@ -637,18 +637,18 @@ yy54: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy51; case 'b': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy55; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy53; case 'd': goto yy47; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy55: @@ -668,10 +668,10 @@ yy57: switch (yych) { case 'b': goto yy59; case 'd': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy28; default: - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy19; } yy58: @@ -679,44 +679,44 @@ yy58: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy63; case 'd': - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy28; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy59: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy29; yy60: yyaccept = 3; yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy57; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy61; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy59; case 'd': goto yy53; default: - yyt1 = yyt4; - yyt3 = YYCURSOR; + yyt3 = yyt4; + yyt2 = YYCURSOR; goto yy19; } yy61: @@ -736,8 +736,8 @@ yy63: switch (yych) { case 'd': goto yy59; default: - yyt1 = yyt3; - yyt3 = YYCURSOR; + yyt3 = yyt2; + yyt2 = YYCURSOR; goto yy19; } yy64: diff --git a/re2c/test/posix_captures/repetition/91.i--flex-syntax.c b/re2c/test/posix_captures/repetition/91.i--flex-syntax.c index 95010548..b84a7db0 100644 --- a/re2c/test/posix_captures/repetition/91.i--flex-syntax.c +++ b/re2c/test/posix_captures/repetition/91.i--flex-syntax.c @@ -7,13 +7,13 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt4 = YYCURSOR; goto yy8; default: goto yy2; } @@ -31,31 +31,31 @@ yy3: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy10; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy5: { const size_t yynmatch = 3; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[0] = yyt2; - yypmatch[2] = yyt3; - yypmatch[4] = yyt4; + yypmatch[0] = yyt1; + yypmatch[2] = yyt2; + yypmatch[4] = yyt3; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt4; + yypmatch[3] = yyt3; yypmatch[5] = YYCURSOR; {} } @@ -72,7 +72,7 @@ yy7: if (yyaccept == 0) { goto yy2; } else { - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; } yy8: @@ -82,21 +82,21 @@ yy8: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy10: @@ -106,21 +106,21 @@ yy10: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt3 = yyt1; - yyt1 = YYCURSOR; + yyt2 = yyt4; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy14; case 'd': - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy11; default: - yyt3 = yyt1; - yyt4 = YYCURSOR; + yyt2 = yyt4; + yyt3 = YYCURSOR; goto yy5; } yy11: @@ -130,7 +130,7 @@ yy11: switch (yych) { case 'd': goto yy11; default: - yyt3 = yyt1; + yyt2 = yyt4; goto yy5; } yy13: @@ -148,19 +148,19 @@ yy14: yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy6; case 'c': - yyt1 = YYCURSOR; + yyt4 = YYCURSOR; goto yy8; case 'd': - yyt1 = yyt4; + yyt4 = yyt3; goto yy8; default: - yyt4 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; } } diff --git a/re2c/test/posix_captures/rightassoc/01.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/01.i--flex-syntax.c index ffa29a15..f744b4bc 100644 --- a/re2c/test/posix_captures/rightassoc/01.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/01.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,28 +34,28 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt3; + yypmatch[6] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt3; + yypmatch[3] = yyt3; + yypmatch[5] = yyt2; yypmatch[7] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/rightassoc/02.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/02.i--flex-syntax.c index ffa29a15..f744b4bc 100644 --- a/re2c/test/posix_captures/rightassoc/02.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/02.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,28 +34,28 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt3; + yypmatch[6] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt3; + yypmatch[3] = yyt3; + yypmatch[5] = yyt2; yypmatch[7] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/rightassoc/03.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/03.i--flex-syntax.c index ffa29a15..f744b4bc 100644 --- a/re2c/test/posix_captures/rightassoc/03.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/03.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,28 +34,28 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt3; + yypmatch[6] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt3; + yypmatch[3] = yyt3; + yypmatch[5] = yyt2; yypmatch[7] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/rightassoc/04.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/04.i--flex-syntax.c index ffa29a15..f744b4bc 100644 --- a/re2c/test/posix_captures/rightassoc/04.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/04.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,28 +34,28 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy4; } yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy10; yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt3; + yypmatch[6] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt3; + yypmatch[3] = yyt3; + yypmatch[5] = yyt2; yypmatch[7] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/rightassoc/05.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/05.i--flex-syntax.c index 0feb197a..ab5ef896 100644 --- a/re2c/test/posix_captures/rightassoc/05.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/05.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -37,19 +37,19 @@ yy5: goto yy2; yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt3; + yypmatch[6] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt3; + yypmatch[3] = yyt3; + yypmatch[5] = yyt2; yypmatch[7] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/rightassoc/06.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/06.i--flex-syntax.c index 0feb197a..ab5ef896 100644 --- a/re2c/test/posix_captures/rightassoc/06.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/06.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -37,19 +37,19 @@ yy5: goto yy2; yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt3; + yypmatch[6] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt3; + yypmatch[3] = yyt3; + yypmatch[5] = yyt2; yypmatch[7] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/rightassoc/07.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/07.i--flex-syntax.c index 0feb197a..ab5ef896 100644 --- a/re2c/test/posix_captures/rightassoc/07.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/07.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -37,19 +37,19 @@ yy5: goto yy2; yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt3; + yypmatch[6] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt3; + yypmatch[3] = yyt3; + yypmatch[5] = yyt2; yypmatch[7] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/rightassoc/08.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/08.i--flex-syntax.c index 0feb197a..ab5ef896 100644 --- a/re2c/test/posix_captures/rightassoc/08.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/08.i--flex-syntax.c @@ -6,10 +6,10 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; case 'b': - yyt1 = yyt2 = YYCURSOR; + yyt1 = yyt3 = YYCURSOR; goto yy6; default: goto yy2; } @@ -28,7 +28,7 @@ yy3: switch (yych) { case 'a': goto yy3; case 'b': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy6; default: goto yy5; } @@ -37,19 +37,19 @@ yy5: goto yy2; yy6: yych = *++YYCURSOR; - yyt3 = YYCURSOR; + yyt2 = YYCURSOR; goto yy9; yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; - yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[2] = yyt1; + yypmatch[4] = yyt3; + yypmatch[6] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; - yypmatch[5] = yyt3; + yypmatch[3] = yyt3; + yypmatch[5] = yyt2; yypmatch[7] = YYCURSOR; {} } diff --git a/re2c/test/posix_captures/rightassoc/09.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/09.i--flex-syntax.c index 48eb9338..e1bf7512 100644 --- a/re2c/test/posix_captures/rightassoc/09.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/09.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -49,12 +49,12 @@ yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = yyt3; yypmatch[7] = YYCURSOR; {} diff --git a/re2c/test/posix_captures/rightassoc/10.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/10.i--flex-syntax.c index 48eb9338..e1bf7512 100644 --- a/re2c/test/posix_captures/rightassoc/10.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/10.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -49,12 +49,12 @@ yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = yyt3; yypmatch[7] = YYCURSOR; {} diff --git a/re2c/test/posix_captures/rightassoc/11.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/11.i--flex-syntax.c index 48eb9338..e1bf7512 100644 --- a/re2c/test/posix_captures/rightassoc/11.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/11.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -49,12 +49,12 @@ yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = yyt3; yypmatch[7] = YYCURSOR; {} diff --git a/re2c/test/posix_captures/rightassoc/12.i--flex-syntax.c b/re2c/test/posix_captures/rightassoc/12.i--flex-syntax.c index 48eb9338..e1bf7512 100644 --- a/re2c/test/posix_captures/rightassoc/12.i--flex-syntax.c +++ b/re2c/test/posix_captures/rightassoc/12.i--flex-syntax.c @@ -6,7 +6,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy3; default: goto yy2; } @@ -23,7 +23,7 @@ yy3: switch (yych) { case 'b': goto yy5; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -34,10 +34,10 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy8; case 'c': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy6; default: goto yy4; } @@ -49,12 +49,12 @@ yy7: { const size_t yynmatch = 4; const YYCTYPE *yypmatch[yynmatch * 2]; - yypmatch[2] = yyt2; - yypmatch[4] = yyt1; + yypmatch[2] = yyt1; + yypmatch[4] = yyt2; yypmatch[6] = yyt3; - yypmatch[0] = yyt2; + yypmatch[0] = yyt1; yypmatch[1] = YYCURSOR; - yypmatch[3] = yyt1; + yypmatch[3] = yyt2; yypmatch[5] = yyt3; yypmatch[7] = YYCURSOR; {} diff --git a/re2c/test/tags/bug121_fix_multiple.i--tags--input(custom).c b/re2c/test/tags/bug121_fix_multiple.i--tags--input(custom).c index 5237384b..69b5145e 100644 --- a/re2c/test/tags/bug121_fix_multiple.i--tags--input(custom).c +++ b/re2c/test/tags/bug121_fix_multiple.i--tags--input(custom).c @@ -25,7 +25,7 @@ yy4: yych = YYPEEK (); switch (yych) { case 'b': - YYTAGP (yyt1); + YYTAGP (yyt2); goto yy5; default: goto yy3; } @@ -50,12 +50,12 @@ yy7: yych = YYPEEK (); switch (yych) { case 'b': - YYTAGP (yyt2); + YYTAGP (yyt1); goto yy9; default: goto yy8; } yy8: - YYRESTORETAG (yyt1); + YYRESTORETAG (yyt2); { 1 } yy9: YYSKIP (); @@ -66,7 +66,7 @@ yy9: } yy10: YYSKIP (); - YYRESTORETAG (yyt2); + YYRESTORETAG (yyt1); { 0 } } diff --git a/re2c/test/tags/bug121_var_multiple.i--tags--eager-skip--input(custom).c b/re2c/test/tags/bug121_var_multiple.i--tags--eager-skip--input(custom).c index 0237a7b5..e6a53533 100644 --- a/re2c/test/tags/bug121_var_multiple.i--tags--eager-skip--input(custom).c +++ b/re2c/test/tags/bug121_var_multiple.i--tags--eager-skip--input(custom).c @@ -16,7 +16,7 @@ yy2: { d } yy4: yych = YYPEEK (); - YYTAGP (yyt1); + YYTAGP (yyt2); switch (yych) { case 'b': YYSKIP (); @@ -24,14 +24,14 @@ yy4: default: goto yy5; } yy5: - YYRESTORETAG (yyt1); + YYRESTORETAG (yyt2); { 1 } yy6: YYBACKUP (); yych = YYPEEK (); switch (yych) { case 'c': - YYTAGP (yyt2); + YYTAGP (yyt1); YYSKIP (); goto yy9; default: goto yy8; @@ -67,7 +67,7 @@ yy11: default: goto yy13; } yy13: - YYRESTORETAG (yyt2); + YYRESTORETAG (yyt1); { 0 } } diff --git a/re2c/test/tags/bug121_var_multiple.i--tags--eager-skip.c b/re2c/test/tags/bug121_var_multiple.i--tags--eager-skip.c index 5aad1d39..d08bf0e6 100644 --- a/re2c/test/tags/bug121_var_multiple.i--tags--eager-skip.c +++ b/re2c/test/tags/bug121_var_multiple.i--tags--eager-skip.c @@ -15,7 +15,7 @@ yy2: { d } yy4: yych = *YYCURSOR; - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'b': ++YYCURSOR; @@ -23,13 +23,13 @@ yy4: default: goto yy5; } yy5: - YYCURSOR = yyt1; + YYCURSOR = yyt2; { 1 } yy6: yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'c': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; ++YYCURSOR; goto yy9; default: goto yy8; @@ -65,7 +65,7 @@ yy11: default: goto yy13; } yy13: - YYCURSOR = yyt2; + YYCURSOR = yyt1; { 0 } } diff --git a/re2c/test/tags/bug121_var_multiple.i--tags--input(custom).c b/re2c/test/tags/bug121_var_multiple.i--tags--input(custom).c index 86a89090..b63af7ae 100644 --- a/re2c/test/tags/bug121_var_multiple.i--tags--input(custom).c +++ b/re2c/test/tags/bug121_var_multiple.i--tags--input(custom).c @@ -17,13 +17,13 @@ yy2: yy4: YYSKIP (); yych = YYPEEK (); - YYTAGP (yyt1); + YYTAGP (yyt2); switch (yych) { case 'b': goto yy6; default: goto yy5; } yy5: - YYRESTORETAG (yyt1); + YYRESTORETAG (yyt2); { 1 } yy6: YYSKIP (); @@ -31,7 +31,7 @@ yy6: yych = YYPEEK (); switch (yych) { case 'c': - YYTAGP (yyt2); + YYTAGP (yyt1); goto yy9; default: goto yy8; } @@ -63,7 +63,7 @@ yy11: default: goto yy13; } yy13: - YYRESTORETAG (yyt2); + YYRESTORETAG (yyt1); { 0 } } diff --git a/re2c/test/tags/bug121_var_multiple.i--tags.c b/re2c/test/tags/bug121_var_multiple.i--tags.c index de258c02..7ead767a 100644 --- a/re2c/test/tags/bug121_var_multiple.i--tags.c +++ b/re2c/test/tags/bug121_var_multiple.i--tags.c @@ -16,19 +16,19 @@ yy2: { d } yy4: yych = *++YYCURSOR; - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; switch (yych) { case 'b': goto yy6; default: goto yy5; } yy5: - YYCURSOR = yyt1; + YYCURSOR = yyt2; { 1 } yy6: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'c': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy9; default: goto yy8; } @@ -59,7 +59,7 @@ yy11: default: goto yy13; } yy13: - YYCURSOR = yyt2; + YYCURSOR = yyt1; { 0 } } diff --git a/re2c/test/tags/counter1.i--tags.c b/re2c/test/tags/counter1.i--tags.c index 517fd4a2..9b373ac6 100644 --- a/re2c/test/tags/counter1.i--tags.c +++ b/re2c/test/tags/counter1.i--tags.c @@ -6,8 +6,8 @@ yych = *YYCURSOR; switch (yych) { case 'd': - yyt11 = NULL; - yyt1 = YYCURSOR; + yyt1 = NULL; + yyt2 = YYCURSOR; goto yy4; default: goto yy2; } @@ -19,7 +19,7 @@ yy4: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'd': - yyt2 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; default: goto yy3; } @@ -27,7 +27,7 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'd': - yyt3 = YYCURSOR; + yyt4 = YYCURSOR; goto yy7; default: goto yy6; } @@ -38,7 +38,7 @@ yy7: yych = *++YYCURSOR; switch (yych) { case 'd': - yyt4 = YYCURSOR; + yyt5 = YYCURSOR; goto yy8; default: goto yy6; } @@ -46,7 +46,7 @@ yy8: yych = *++YYCURSOR; switch (yych) { case 'd': - yyt5 = YYCURSOR; + yyt6 = YYCURSOR; goto yy9; default: goto yy6; } @@ -54,7 +54,7 @@ yy9: yych = *++YYCURSOR; switch (yych) { case 'd': - yyt6 = YYCURSOR; + yyt7 = YYCURSOR; goto yy10; default: goto yy6; } @@ -62,7 +62,7 @@ yy10: yych = *++YYCURSOR; switch (yych) { case 'd': - yyt7 = YYCURSOR; + yyt8 = YYCURSOR; goto yy11; default: goto yy6; } @@ -70,7 +70,7 @@ yy11: yych = *++YYCURSOR; switch (yych) { case 'd': - yyt8 = YYCURSOR; + yyt9 = YYCURSOR; goto yy12; default: goto yy6; } @@ -78,7 +78,7 @@ yy12: yych = *++YYCURSOR; switch (yych) { case 'd': - yyt9 = YYCURSOR; + yyt10 = YYCURSOR; goto yy13; default: goto yy6; } @@ -86,7 +86,7 @@ yy13: yych = *++YYCURSOR; switch (yych) { case 'd': - yyt10 = YYCURSOR; + yyt11 = YYCURSOR; goto yy14; default: goto yy6; } @@ -96,7 +96,6 @@ yy14: yych = *YYCURSOR; switch (yych) { case 'd': - yyt11 = yyt1; yyt1 = yyt2; yyt2 = yyt3; yyt3 = yyt4; @@ -106,12 +105,13 @@ yy14: yyt7 = yyt8; yyt8 = yyt9; yyt9 = yyt10; - yyt10 = YYCURSOR; + yyt10 = yyt11; + yyt11 = YYCURSOR; goto yy14; default: goto yy16; } yy16: - z = yyt11; + z = yyt1; {} } diff --git a/re2c/test/tags/fallback3.i--tags.c b/re2c/test/tags/fallback3.i--tags.c index 3495a27a..3654bbd6 100644 --- a/re2c/test/tags/fallback3.i--tags.c +++ b/re2c/test/tags/fallback3.i--tags.c @@ -23,7 +23,7 @@ yy4: yych = *(YYMARKER = ++YYCURSOR); switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy5; default: goto yy3; } @@ -47,13 +47,13 @@ yy7: YYMARKER = ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - yyt2 = yyt1; + yyt1 = yyt2; switch (yych) { case 'a': goto yy9; default: goto yy8; } yy8: - p = yyt2; + p = yyt1; { p } yy9: ++YYCURSOR; @@ -61,7 +61,7 @@ yy9: yych = *YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy5; default: goto yy6; } diff --git a/re2c/test/tags/fallback4.i--tags.c b/re2c/test/tags/fallback4.i--tags.c index 1a215f8d..04a7acbd 100644 --- a/re2c/test/tags/fallback4.i--tags.c +++ b/re2c/test/tags/fallback4.i--tags.c @@ -13,7 +13,7 @@ yyt2 yych = *YYCURSOR; switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy4; default: goto yy2; } @@ -25,7 +25,7 @@ yy4: yych = *++YYCURSOR; switch (yych) { case 'b': - yyt2 = YYCURSOR; + yyt1 = YYCURSOR; goto yy5; default: goto yy3; } @@ -36,7 +36,7 @@ yy5: default: goto yy6; } yy6: - YYCURSOR = yyt1; + YYCURSOR = yyt2; {} yy7: YYMARKER = ++YYCURSOR; @@ -47,7 +47,7 @@ yy7: default: goto yy8; } yy8: - p = yyt2; + p = yyt1; { p } yy9: ++YYCURSOR; @@ -55,7 +55,7 @@ yy9: yych = *YYCURSOR; switch (yych) { case 'b': - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; goto yy11; default: goto yy10; } @@ -68,7 +68,7 @@ yy11: yych = *YYCURSOR; switch (yych) { case 'c': - yyt2 = yyt1; + yyt1 = yyt2; goto yy7; default: goto yy10; } diff --git a/re2c/test/tags/fix5_trail.i--tags--input(custom).c b/re2c/test/tags/fix5_trail.i--tags--input(custom).c index 230562da..4abc6229 100644 --- a/re2c/test/tags/fix5_trail.i--tags--input(custom).c +++ b/re2c/test/tags/fix5_trail.i--tags--input(custom).c @@ -19,11 +19,11 @@ static void lex(const char *s) yych = YYPEEK (); switch (yych) { case '0': - YYTAGP (yyt2); + YYTAGP (yyt1); goto yy4; case '1': YYTAGP (yyt1); - YYTAGP (yyt2); + YYTAGP (yyt5); goto yy5; default: goto yy2; } @@ -46,11 +46,11 @@ yy5: yych = YYPEEK (); switch (yych) { case '2': - YYTAGP (yyt3); + YYTAGP (yyt2); goto yy10; case '3': + YYTAGP (yyt2); YYTAGP (yyt3); - YYTAGP (yyt4); goto yy12; default: goto yy3; } @@ -61,7 +61,7 @@ yy7: switch (yych) { case '0': goto yy6; case '1': - YYTAGP (yyt1); + YYTAGP (yyt5); goto yy9; default: goto yy8; } @@ -73,11 +73,11 @@ yy9: yych = YYPEEK (); switch (yych) { case '2': - YYTAGP (yyt3); + YYTAGP (yyt2); goto yy10; case '3': + YYTAGP (yyt2); YYTAGP (yyt3); - YYTAGP (yyt4); goto yy12; default: goto yy8; } @@ -87,21 +87,21 @@ yy10: switch (yych) { case '2': goto yy10; case '3': - YYTAGP (yyt4); + YYTAGP (yyt3); goto yy12; default: goto yy8; } yy12: YYSKIP (); yych = YYPEEK (); - YYTAGP (yyt5); + YYTAGP (yyt4); goto yy15; yy13: - p0 = yyt2; - p1 = yyt1; - p2 = yyt3; - p3 = yyt4; - YYRESTORETAG (yyt5); + p0 = yyt1; + p1 = yyt5; + p2 = yyt2; + p3 = yyt3; + YYRESTORETAG (yyt4); { printf("'%.*s', '%.*s', '%.*s', '%.*s', '%s'\n", p1 - p0, p0, diff --git a/re2c/test/tags/lost_tag.i--tags--no-lookahead--input(custom).c b/re2c/test/tags/lost_tag.i--tags--no-lookahead--input(custom).c index b9b503bd..3e064d85 100644 --- a/re2c/test/tags/lost_tag.i--tags--no-lookahead--input(custom).c +++ b/re2c/test/tags/lost_tag.i--tags--no-lookahead--input(custom).c @@ -2,22 +2,22 @@ { YYCTYPE yych; - YYTAGP (yyt1); + YYTAGP (yyt2); if (YYLESSTHAN (1)) YYFILL(1); yych = YYPEEK (); YYSKIP (); switch (yych) { case 'a': - YYTAGP (yyt2); + YYTAGP (yyt1); goto yy2; default: - YYTAGN (yyt1); - YYTAGP (yyt2); + YYTAGP (yyt1); + YYTAGN (yyt2); goto yy2; } yy2: - a = yyt1; - b = yyt2; + a = yyt2; + b = yyt1; {} } diff --git a/re2c/test/tags/map_ord1.i--tags--no-lookahead.c b/re2c/test/tags/map_ord1.i--tags--no-lookahead.c index cf67853c..1b23b576 100644 --- a/re2c/test/tags/map_ord1.i--tags--no-lookahead.c +++ b/re2c/test/tags/map_ord1.i--tags--no-lookahead.c @@ -3,8 +3,8 @@ { YYCTYPE yych; - yyt2 = NULL; - yyt1 = YYCURSOR; + yyt1 = NULL; + yyt2 = YYCURSOR; if ((YYLIMIT - YYCURSOR) < 3) YYFILL(3); yych = *YYCURSOR; switch (yych) { @@ -14,7 +14,7 @@ default: goto yy2; } yy2: - t = yyt2; + t = yyt1; {} yy3: yych = *YYCURSOR; @@ -23,7 +23,7 @@ yy3: ++YYCURSOR; goto yy4; default: - yyt2 = yyt1; + yyt1 = yyt2; goto yy2; } yy4: @@ -42,7 +42,7 @@ yy5: ++YYCURSOR; goto yy5; default: - yyt2 = yyt1; + yyt1 = yyt2; goto yy2; } } diff --git a/re2c/test/tags/map_ord2.i--tags--no-lookahead.c b/re2c/test/tags/map_ord2.i--tags--no-lookahead.c index 91a0ce72..a2669def 100644 --- a/re2c/test/tags/map_ord2.i--tags--no-lookahead.c +++ b/re2c/test/tags/map_ord2.i--tags--no-lookahead.c @@ -3,8 +3,8 @@ { YYCTYPE yych; - yyt2 = NULL; - yyt1 = YYCURSOR; + yyt1 = NULL; + yyt2 = YYCURSOR; if ((YYLIMIT - YYCURSOR) < 8) YYFILL(8); yych = *(YYMARKER = YYCURSOR); switch (yych) { @@ -14,7 +14,7 @@ default: goto yy2; } yy2: - t = yyt2; + t = yyt1; {} yy3: yych = *YYCURSOR; @@ -34,7 +34,7 @@ yy5: ++YYCURSOR; goto yy6; default: - yyt2 = yyt1; + yyt1 = yyt2; goto yy2; } yy6: @@ -60,7 +60,7 @@ yy8: ++YYCURSOR; goto yy9; default: - yyt2 = yyt1; + yyt1 = yyt2; goto yy2; } yy9: @@ -70,7 +70,7 @@ yy9: ++YYCURSOR; goto yy10; default: - yyt2 = yyt1; + yyt1 = yyt2; goto yy2; } yy10: @@ -89,7 +89,7 @@ yy11: ++YYCURSOR; goto yy11; default: - yyt2 = yyt1; + yyt1 = yyt2; goto yy2; } } diff --git a/re2c/test/tags/skip_tags_disorder1.i--tags--no-lookahead.c b/re2c/test/tags/skip_tags_disorder1.i--tags--no-lookahead.c index 28fa6dde..b1909f08 100644 --- a/re2c/test/tags/skip_tags_disorder1.i--tags--no-lookahead.c +++ b/re2c/test/tags/skip_tags_disorder1.i--tags--no-lookahead.c @@ -2,8 +2,8 @@ { YYCTYPE yych; - yyt2 = NULL; - yyt1 = YYCURSOR; + yyt1 = NULL; + yyt2 = YYCURSOR; goto yy0; yy1: yy0: @@ -16,13 +16,13 @@ yy0: default: goto yy2; } yy2: - a = yyt2; + a = yyt1; {} yy3: if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR++; - yyt2 = yyt1; - yyt1 = YYCURSOR; + yyt1 = yyt2; + yyt2 = YYCURSOR; goto yy1; } diff --git a/re2c/test/tags/topsort1.i--tags.c b/re2c/test/tags/topsort1.i--tags.c index b12353d2..68607f3a 100644 --- a/re2c/test/tags/topsort1.i--tags.c +++ b/re2c/test/tags/topsort1.i--tags.c @@ -6,8 +6,8 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt5 = NULL; - yyt1 = YYCURSOR; + yyt1 = NULL; + yyt2 = YYCURSOR; goto yy3; default: goto yy2; } @@ -17,7 +17,7 @@ yy3: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt2 = YYCURSOR; + yyt3 = YYCURSOR; goto yy5; default: goto yy4; } @@ -28,7 +28,7 @@ yy5: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt3 = YYCURSOR; + yyt4 = YYCURSOR; goto yy6; default: goto yy4; } @@ -36,7 +36,7 @@ yy6: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt4 = YYCURSOR; + yyt5 = YYCURSOR; goto yy7; default: goto yy4; } @@ -46,16 +46,16 @@ yy7: yych = *YYCURSOR; switch (yych) { case 'a': - yyt5 = yyt1; yyt1 = yyt2; yyt2 = yyt3; yyt3 = yyt4; - yyt4 = YYCURSOR; + yyt4 = yyt5; + yyt5 = YYCURSOR; goto yy7; default: goto yy9; } yy9: - p = yyt5; + p = yyt1; {} } diff --git a/re2c/test/tags/topsort3.i--tags--no-lookahead.c b/re2c/test/tags/topsort3.i--tags--no-lookahead.c index 6f982fc9..74f0f344 100644 --- a/re2c/test/tags/topsort3.i--tags--no-lookahead.c +++ b/re2c/test/tags/topsort3.i--tags--no-lookahead.c @@ -2,10 +2,10 @@ { YYCTYPE yych; - yyt1 = YYCURSOR; + yyt2 = YYCURSOR; if ((YYLIMIT - YYCURSOR) < 3) YYFILL(3); yych = *(YYMARKER = YYCURSOR++); - yyt2 = NULL; + yyt1 = NULL; switch (yych) { case 'a': goto yy4; case 'b': goto yy6; @@ -40,21 +40,21 @@ yy6: goto yy9; } yy7: - c = yyt2; + c = yyt1; {} yy8: yych = *YYCURSOR; switch (yych) { case 'b': - yyt2 = yyt1; + yyt1 = yyt2; goto yy7; default: ++YYCURSOR; - yyt1 = yyt2; + yyt2 = yyt1; goto yy9; } yy9: - yyt2 = yyt1; + yyt1 = yyt2; goto yy7; yy10: yych = *YYCURSOR; @@ -62,7 +62,7 @@ yy10: case 'b': goto yy5; default: ++YYCURSOR; - yyt1 = yyt2; + yyt2 = yyt1; goto yy9; } } diff --git a/re2c/test/tags/twopass.i--tags.c b/re2c/test/tags/twopass.i--tags.c index 6d0f796b..38593335 100644 --- a/re2c/test/tags/twopass.i--tags.c +++ b/re2c/test/tags/twopass.i--tags.c @@ -10,7 +10,7 @@ yych = *(YYMARKER = YYCURSOR); switch (yych) { case 'a': - yyt1 = YYCURSOR; + yyt3 = YYCURSOR; goto yy4; case 'b': yyt1 = yyt2 = yyt3 = YYCURSOR; @@ -76,9 +76,9 @@ yy6: goto yy8; } yy7: - p = yyt1; - q = yyt2; - y = yyt3; + p = yyt3; + q = yyt1; + y = yyt2; {} yy8: yyaccept = 3; @@ -125,12 +125,12 @@ yy13: switch (yych) { case 'a': goto yy17; case 'b': - yyt2 = NULL; - yyt3 = YYCURSOR; + yyt1 = NULL; + yyt2 = YYCURSOR; goto yy18; default: - yyt2 = NULL; - yyt3 = YYCURSOR; + yyt1 = NULL; + yyt2 = YYCURSOR; goto yy15; } yy14: @@ -160,15 +160,15 @@ yy17: yych = *++YYCURSOR; switch (yych) { case 'a': - yyt1 = NULL; + yyt3 = NULL; goto yy20; case 'b': - yyt1 = NULL; - yyt2 = yyt3 = YYCURSOR; + yyt3 = NULL; + yyt1 = yyt2 = YYCURSOR; goto yy18; default: - yyt1 = NULL; - yyt2 = yyt3 = YYCURSOR; + yyt3 = NULL; + yyt1 = yyt2 = YYCURSOR; goto yy15; } yy18: @@ -192,12 +192,12 @@ yy21: switch (yych) { case 'a': goto yy5; case 'b': - yyt2 = NULL; - yyt3 = YYCURSOR; + yyt1 = NULL; + yyt2 = YYCURSOR; goto yy18; default: - yyt2 = NULL; - yyt3 = YYCURSOR; + yyt1 = NULL; + yyt2 = YYCURSOR; goto yy15; } }