From: helly Date: Sun, 22 Apr 2007 10:43:03 +0000 (+0000) Subject: - Allow to test for multiple short args with param X-Git-Tag: 0.13.6~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbbf07a2dedfe98defc37b4dd84a835168a4b86c;p=re2c - Allow to test for multiple short args with param --- diff --git a/re2c/run_tests.sh.in b/re2c/run_tests.sh.in index c1b3cc1d..2f67717c 100644 --- a/re2c/run_tests.sh.in +++ b/re2c/run_tests.sh.in @@ -6,8 +6,8 @@ tstcnt=0; for x in @top_srcdir@/test/*.re `find @top_srcdir@/lessons -name '*.re'|sort`; do tstcnt=$(($tstcnt+1)) switches=`basename $x|sed -e 's/^[^.]*\.\(.*\)\.re$/-\1/g' -e 's/^[^-].*//g'` - genname=`echo $switches|sed -e 's,^.[^o].*$,,g' -e 's,^-o\([ -]*\),@builddir@/test/\1,g'` - switches=`echo $switches|sed -e 's,^-o\(.*\)$,-o@builddir@/test/\1,g'` + genname=`echo $switches|sed -e 's,^.[^o]*$,,g' -e 's,^-[^o]*o\(.*\),@builddir@/test/\1,g'` + switches=`echo $switches|sed -e 's,^-\([^o]*\)o\(.*\)$,-\1o@builddir@/test/\2,g'` # don't use the -o flag, since it makes it harder to diff. echo $x: $switches outname=@builddir@/test/`basename ${x%.re}.temp` diff --git a/re2c/test/input12.boinput12.c.c b/re2c/test/input12.boinput12.c.c new file mode 100755 index 00000000..e2c57238 --- /dev/null +++ b/re2c/test/input12.boinput12.c.c @@ -0,0 +1,64 @@ +/* Generated by re2c */ +#line 1 "input12.boinput12.c.re" + +#line 5 "input12.c" +{ + YYCTYPE yych; + static const unsigned char yybm[] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 128, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + }; + + if(YYLIMIT == YYCURSOR) YYFILL(1); + yych = *YYCURSOR; + if(yybm[0+yych] & 128) { + goto yy3; + } +yy2: +yy3: + ++YYCURSOR; + if((YYLIMIT - YYCURSOR) < 2) YYFILL(2); + yych = *YYCURSOR; + if(yybm[0+yych] & 128) { + goto yy3; + } + if(yych != 'b') goto yy2; + yych = *++YYCURSOR; + if(yych != 'b') goto yy2; + ++YYCURSOR; +#line 3 "input12.boinput12.c.re" + { return 1; } +#line 62 "input12.c" +} +#line 5 "input12.boinput12.c.re" + diff --git a/re2c/test/input12.boinput12.c.re b/re2c/test/input12.boinput12.c.re new file mode 100755 index 00000000..6df25196 --- /dev/null +++ b/re2c/test/input12.boinput12.c.re @@ -0,0 +1,5 @@ +/*!re2c + +[a]+ "bb" { return 1; } + +*/