]> granicus.if.org Git - re2c/commitdiff
Moved tests to subdirectory.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 14 Feb 2017 09:53:24 +0000 (09:53 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 14 Feb 2017 09:53:24 +0000 (09:53 +0000)
14 files changed:
re2c/test/tags/ambiguity/alt1.i--tags.c [new file with mode: 0644]
re2c/test/tags/ambiguity/alt1.i--tags.re [moved from re2c/test/tags/nondet_alt1.--tags.re with 100% similarity]
re2c/test/tags/ambiguity/alt2.i--tags.c [new file with mode: 0644]
re2c/test/tags/ambiguity/alt2.i--tags.re [moved from re2c/test/tags/nondet_alt2.--tags.re with 100% similarity]
re2c/test/tags/ambiguity/cat1.i--tags.c [moved from re2c/test/tags/nondet_cat1.--tags.c with 69% similarity]
re2c/test/tags/ambiguity/cat1.i--tags.re [moved from re2c/test/tags/nondet_cat1.--tags.re with 100% similarity]
re2c/test/tags/ambiguity/cat3.i.c [moved from re2c/test/tags/nondet_cat3.i.c with 100% similarity]
re2c/test/tags/ambiguity/cat3.i.re [moved from re2c/test/tags/nondet_cat3.i.re with 100% similarity]
re2c/test/tags/ambiguity/cat4.i--tags.c [moved from re2c/test/tags/nondet_cat4.--tags.c with 73% similarity]
re2c/test/tags/ambiguity/cat4.i--tags.re [moved from re2c/test/tags/nondet_cat4.--tags.re with 100% similarity]
re2c/test/tags/ambiguity/iter.i--tags.c [moved from re2c/test/tags/nondet_iter.--tags.c with 76% similarity]
re2c/test/tags/ambiguity/iter.i--tags.re [moved from re2c/test/tags/nondet_iter.--tags.re with 100% similarity]
re2c/test/tags/nondet_alt1.--tags.c [deleted file]
re2c/test/tags/nondet_alt2.--tags.c [deleted file]

diff --git a/re2c/test/tags/ambiguity/alt1.i--tags.c b/re2c/test/tags/ambiguity/alt1.i--tags.c
new file mode 100644 (file)
index 0000000..e47dcae
--- /dev/null
@@ -0,0 +1,20 @@
+/* Generated by re2c */
+
+{
+       YYCTYPE yych;
+       if (YYLIMIT <= YYCURSOR) YYFILL(1);
+       yych = *YYCURSOR;
+       switch (yych) {
+       case 'a':       goto yy4;
+       default:        goto yy2;
+       }
+yy2:
+       ++YYCURSOR;
+       {}
+yy4:
+       ++YYCURSOR;
+       yyt1 = YYCURSOR;
+       p = yyt1;
+       { @p }
+}
+
diff --git a/re2c/test/tags/ambiguity/alt2.i--tags.c b/re2c/test/tags/ambiguity/alt2.i--tags.c
new file mode 100644 (file)
index 0000000..1c80f58
--- /dev/null
@@ -0,0 +1,21 @@
+/* Generated by re2c */
+
+{
+       YYCTYPE yych;
+       if (YYLIMIT <= YYCURSOR) YYFILL(1);
+       yych = *YYCURSOR;
+       switch (yych) {
+       case 'a':
+               yyt1 = YYCURSOR;
+               goto yy4;
+       default:        goto yy2;
+       }
+yy2:
+       ++YYCURSOR;
+       {}
+yy4:
+       ++YYCURSOR;
+       p = yyt1;
+       { @p }
+}
+
similarity index 69%
rename from re2c/test/tags/nondet_cat1.--tags.c
rename to re2c/test/tags/ambiguity/cat1.i--tags.c
index f32ecd9c834812785c330844de01c40f0bfd6516..cf775a71be3a5a6a1b4222f34b42c3f1179b6bb0 100644 (file)
@@ -1,7 +1,5 @@
 /* Generated by re2c */
-#line 1 "tags/nondet_cat1.--tags.re"
 
-#line 5 "tags/nondet_cat1.--tags.c"
 {
        YYCTYPE yych;
        if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
@@ -13,9 +11,7 @@
 yy2:
        ++YYCURSOR;
 yy3:
-#line 3 "tags/nondet_cat1.--tags.re"
        {}
-#line 19 "tags/nondet_cat1.--tags.c"
 yy4:
        yych = *++YYCURSOR;
        switch (yych) {
@@ -36,10 +32,7 @@ yy5:
        }
 yy7:
        p = yyt1;
-#line 2 "tags/nondet_cat1.--tags.re"
        { @p }
-#line 42 "tags/nondet_cat1.--tags.c"
 }
-#line 4 "tags/nondet_cat1.--tags.re"
 
 re2c: warning: line 2: tag 'p' is non-deterministic and induces 2 parallel instances [-Wnondeterministic-tags]
similarity index 73%
rename from re2c/test/tags/nondet_cat4.--tags.c
rename to re2c/test/tags/ambiguity/cat4.i--tags.c
index 8d175dadab5f15f33cce73710219fea8300b4228..8ffbc8c2694cb17b2fb00974697dc0baabc4eea9 100644 (file)
@@ -1,9 +1,7 @@
 /* Generated by re2c */
-#line 1 "tags/nondet_cat4.--tags.re"
 // Tag is nondeterministic: fixed length helps only in top-level
 
 
-#line 7 "tags/nondet_cat4.--tags.c"
 {
        YYCTYPE yych;
        if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
@@ -16,9 +14,7 @@
 yy2:
        ++YYCURSOR;
 yy3:
-#line 5 "tags/nondet_cat4.--tags.re"
        {}
-#line 22 "tags/nondet_cat4.--tags.c"
 yy4:
        yych = *++YYCURSOR;
        switch (yych) {
@@ -32,9 +28,7 @@ yy5:
        yyt1 = NULL;
 yy6:
        p = yyt1;
-#line 4 "tags/nondet_cat4.--tags.re"
        { @p }
-#line 38 "tags/nondet_cat4.--tags.c"
 yy7:
        ++YYCURSOR;
        if (YYLIMIT <= YYCURSOR) YYFILL(1);
@@ -46,6 +40,5 @@ yy7:
        default:        goto yy6;
        }
 }
-#line 6 "tags/nondet_cat4.--tags.re"
 
 re2c: warning: line 4: tag 'p' is non-deterministic and induces 2 parallel instances [-Wnondeterministic-tags]
similarity index 76%
rename from re2c/test/tags/nondet_iter.--tags.c
rename to re2c/test/tags/ambiguity/iter.i--tags.c
index 615ed9f17ce77ec2d729d08ecc591bd14e5db822..efc7495f435020009f674b1ede41030d699a18fa 100644 (file)
@@ -1,7 +1,5 @@
 /* Generated by re2c */
-#line 1 "tags/nondet_iter.--tags.re"
 
-#line 5 "tags/nondet_iter.--tags.c"
 {
        YYCTYPE yych;
        if (YYLIMIT <= YYCURSOR) YYFILL(1);
@@ -25,9 +23,7 @@
        }
 yy2:
        a = yyt1;
-#line 2 "tags/nondet_iter.--tags.re"
        { @a }
-#line 31 "tags/nondet_iter.--tags.c"
 yy3:
        ++YYCURSOR;
        if (YYLIMIT <= YYCURSOR) YYFILL(1);
@@ -48,9 +44,7 @@ yy5:
        }
 yy7:
        b = yyt1;
-#line 5 "tags/nondet_iter.--tags.re"
        { @b }
-#line 54 "tags/nondet_iter.--tags.c"
 yy8:
        ++YYCURSOR;
        if (YYLIMIT <= YYCURSOR) YYFILL(1);
@@ -61,9 +55,7 @@ yy8:
        }
 yy10:
        c = yyt1;
-#line 8 "tags/nondet_iter.--tags.re"
        { @c }
-#line 67 "tags/nondet_iter.--tags.c"
 yy11:
        ++YYCURSOR;
        if (YYLIMIT <= YYCURSOR) YYFILL(1);
@@ -76,9 +68,7 @@ yy11:
        }
 yy13:
        d = yyt1;
-#line 3 "tags/nondet_iter.--tags.re"
        { @d }
-#line 82 "tags/nondet_iter.--tags.c"
 yy14:
        ++YYCURSOR;
        if (YYLIMIT <= YYCURSOR) YYFILL(1);
@@ -91,9 +81,7 @@ yy14:
        }
 yy16:
        e = yyt1;
-#line 6 "tags/nondet_iter.--tags.re"
        { @e }
-#line 97 "tags/nondet_iter.--tags.c"
 yy17:
        ++YYCURSOR;
        if (YYLIMIT <= YYCURSOR) YYFILL(1);
@@ -106,11 +94,8 @@ yy17:
        }
 yy19:
        f = yyt1;
-#line 9 "tags/nondet_iter.--tags.re"
        { @f }
-#line 112 "tags/nondet_iter.--tags.c"
 }
-#line 10 "tags/nondet_iter.--tags.re"
 
 re2c: warning: line 2: rule matches empty string [-Wmatch-empty-string]
 re2c: warning: line 3: rule matches empty string [-Wmatch-empty-string]
diff --git a/re2c/test/tags/nondet_alt1.--tags.c b/re2c/test/tags/nondet_alt1.--tags.c
deleted file mode 100644 (file)
index 03bedf2..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Generated by re2c */
-#line 1 "tags/nondet_alt1.--tags.re"
-
-#line 5 "tags/nondet_alt1.--tags.c"
-{
-       YYCTYPE yych;
-       if (YYLIMIT <= YYCURSOR) YYFILL(1);
-       yych = *YYCURSOR;
-       switch (yych) {
-       case 'a':       goto yy4;
-       default:        goto yy2;
-       }
-yy2:
-       ++YYCURSOR;
-#line 3 "tags/nondet_alt1.--tags.re"
-       {}
-#line 18 "tags/nondet_alt1.--tags.c"
-yy4:
-       ++YYCURSOR;
-       yyt1 = YYCURSOR;
-       p = yyt1;
-#line 2 "tags/nondet_alt1.--tags.re"
-       { @p }
-#line 25 "tags/nondet_alt1.--tags.c"
-}
-#line 4 "tags/nondet_alt1.--tags.re"
-
diff --git a/re2c/test/tags/nondet_alt2.--tags.c b/re2c/test/tags/nondet_alt2.--tags.c
deleted file mode 100644 (file)
index b229b86..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Generated by re2c */
-#line 1 "tags/nondet_alt2.--tags.re"
-
-#line 5 "tags/nondet_alt2.--tags.c"
-{
-       YYCTYPE yych;
-       if (YYLIMIT <= YYCURSOR) YYFILL(1);
-       yych = *YYCURSOR;
-       switch (yych) {
-       case 'a':
-               yyt1 = YYCURSOR;
-               goto yy4;
-       default:        goto yy2;
-       }
-yy2:
-       ++YYCURSOR;
-#line 3 "tags/nondet_alt2.--tags.re"
-       {}
-#line 20 "tags/nondet_alt2.--tags.c"
-yy4:
-       ++YYCURSOR;
-       p = yyt1;
-#line 2 "tags/nondet_alt2.--tags.re"
-       { @p }
-#line 26 "tags/nondet_alt2.--tags.c"
-}
-#line 4 "tags/nondet_alt2.--tags.re"
-