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 47 48 49 50 51 52 53 54 55 56 57 58
|
/* Generated by re2c */
// re2c $INPUT -o $OUTPUT -i --posix-captures --dump-nfa --fixed-tags toplevel
{
YYCTYPE yych;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
switch (yych) {
case 'a':
yyt1 = YYCURSOR;
yyt2 = YYCURSOR;
goto yy2;
default:
yyt1 = YYCURSOR;
yyt2 = NULL;
yyt3 = NULL;
goto yy1;
}
yy1:
yynmatch = 2;
yypmatch[0] = yyt1;
yypmatch[2] = yyt2;
yypmatch[3] = yyt3;
yypmatch[1] = YYCURSOR;
{}
yy2:
++YYCURSOR;
if (YYLIMIT <= YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
switch (yych) {
case 'a':
yyt2 = YYCURSOR;
goto yy2;
default:
yyt3 = YYCURSOR;
goto yy1;
}
}
debug/nfa.re:3:11: warning: rule matches empty string [-Wmatch-empty-string]
digraph NFA {
rankdir=LR
node[shape=Mrecord fontname=Courier height=0.2 width=0.2]
edge[arrowhead=vee fontname=Courier label=" "]
9 -> 8 [label="/0↑(1)"]
8 -> 5
8 -> 7 [color=lightgray]
5 -> 4 [label="/2↑(2)"]
4 -> 3 [label="97"]
3 -> 2 [label="/3↑(1)"]
2 -> 5
2 -> 1 [color=lightgray]
1 -> 0 [label="/1↑(0)"]
0 [fillcolor=gray]
7 -> 6 [label="/2↓(2)"]
6 -> 1 [label="/3↓(1)"]
}
|