]> granicus.if.org Git - re2c/commitdiff
- Add tests
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 13 Feb 2008 16:04:57 +0000 (16:04 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 13 Feb 2008 16:04:57 +0000 (16:04 +0000)
re2c/test/long-flag.-case-insensitive.c [new file with mode: 0755]
re2c/test/long-flag.-case-insensitive.re [new file with mode: 0755]

diff --git a/re2c/test/long-flag.-case-insensitive.c b/re2c/test/long-flag.-case-insensitive.c
new file mode 100755 (executable)
index 0000000..a61e8bc
--- /dev/null
@@ -0,0 +1,31 @@
+/* Generated by re2c */
+#line 1 "long-flag.-case-insensitive.re"
+
+#line 5 "<stdout>"
+{
+       YYCTYPE yych;
+
+       if (YYLIMIT == YYCURSOR) YYFILL(1);
+       yych = *YYCURSOR;
+       switch (yych) {
+       case 'A':
+       case 'a':       goto yy3;
+       case 'B':
+       case 'b':       goto yy5;
+       default:        goto yy2;
+       }
+yy2:
+yy3:
+       ++YYCURSOR;
+#line 2 "long-flag.-case-insensitive.re"
+       {return 'a';}
+#line 23 "<stdout>"
+yy5:
+       ++YYCURSOR;
+#line 3 "long-flag.-case-insensitive.re"
+       {return 'b';}
+#line 28 "<stdout>"
+}
+#line 4 "long-flag.-case-insensitive.re"
+
+}
diff --git a/re2c/test/long-flag.-case-insensitive.re b/re2c/test/long-flag.-case-insensitive.re
new file mode 100755 (executable)
index 0000000..6b22a15
--- /dev/null
@@ -0,0 +1,5 @@
+/*!re2c
+       "a"     {return 'a';}
+       'b'     {return 'b';}
+*/
+}