1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
/* Generated by re2c */
// re2c $INPUT -o $OUTPUT -i --leftmost-captures --fixed-tags toplevel
// POSIX and leftmost policies produce the same results.
{
YYCTYPE yych;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
switch (yych) {
case 'a':
yyt1 = YYCURSOR;
goto yy2;
case 'b':
yyt1 = NULL;
yyt2 = NULL;
goto yy4;
default: goto yy1;
}
yy1:
yynmatch = 1;
yypmatch[0] = YYCURSOR;
yypmatch[1] = YYCURSOR;
{}
yy2:
++YYCURSOR;
yyt2 = YYCURSOR;
yyt3 = NULL;
yy3:
yynmatch = 4;
yypmatch[2] = yyt1;
yypmatch[4] = yyt1;
yypmatch[3] = yyt2;
yypmatch[5] = yyt2;
yypmatch[6] = yyt3;
yypmatch[7] = yyt3;
yypmatch[0] = YYCURSOR;
yypmatch[0] -= 1;
yypmatch[1] = YYCURSOR;
{}
yy4:
++YYCURSOR;
yyt3 = NULL;
goto yy3;
}
captures/same2_leftmost.re:5:7: warning: rule matches empty string [-Wmatch-empty-string]
|