]> granicus.if.org Git - re2c/commitdiff
- More tests
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 9 Jul 2005 18:34:20 +0000 (18:34 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 9 Jul 2005 18:34:20 +0000 (18:34 +0000)
test/input5.c [new file with mode: 0755]
test/input5.re [new file with mode: 0755]
test/input6.c [new file with mode: 0755]
test/input6.re [new file with mode: 0755]

diff --git a/test/input5.c b/test/input5.c
new file mode 100755 (executable)
index 0000000..d650106
--- /dev/null
@@ -0,0 +1,30 @@
+/* Generated by re2c */
+#line 1 "input5.re"
+
+#line 5 "<stdout>"
+{
+       YYCTYPE yych;
+       goto yy0;
+       ++YYCURSOR;
+yy0:
+       if(YYLIMIT == YYCURSOR) YYFILL(1);
+       yych = *YYCURSOR;
+       switch(yych){
+       case 'a':       goto yy2;
+       default:        goto yy4;
+       }
+yy2:   ++YYCURSOR;
+       goto yy3;
+yy3:
+#line 3 "input5.re"
+{ return 0; }
+#line 22 "<stdout>"
+yy4:   ++YYCURSOR;
+       goto yy5;
+yy5:
+#line 4 "input5.re"
+{ return 1; }
+#line 28 "<stdout>"
+}
+#line 6 "input5.re"
+
diff --git a/test/input5.re b/test/input5.re
new file mode 100755 (executable)
index 0000000..7ea16ad
--- /dev/null
@@ -0,0 +1,6 @@
+/*!re2c
+
+[a]   { return 0; }
+[^a]  { return 1; }
+
+*/
diff --git a/test/input6.c b/test/input6.c
new file mode 100755 (executable)
index 0000000..ab20371
--- /dev/null
@@ -0,0 +1,25 @@
+/* Generated by re2c */
+#line 1 "input6.re"
+
+#line 5 "<stdout>"
+{
+       YYCTYPE yych;
+       goto yy0;
+       ++YYCURSOR;
+yy0:
+       if(YYLIMIT == YYCURSOR) YYFILL(1);
+       yych = *YYCURSOR;
+       goto yy3;
+
+#line 3 "input6.re"
+{ return 0; }
+#line 17 "<stdout>"
+yy3:   ++YYCURSOR;
+       goto yy4;
+yy4:
+#line 4 "input6.re"
+{ return 1; }
+#line 23 "<stdout>"
+}
+#line 6 "input6.re"
+
diff --git a/test/input6.re b/test/input6.re
new file mode 100755 (executable)
index 0000000..aaa32f8
--- /dev/null
@@ -0,0 +1,6 @@
+/*!re2c
+
+[]/[]       { return 0; }
+[\000-\377] { return 1; }
+
+*/