File: line-01.c

package info (click to toggle)
re2c 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 50,052 kB
  • sloc: cpp: 32,477; ml: 8,279; sh: 5,265; makefile: 968; haskell: 612; python: 428; ansic: 227; javascript: 111; java: 3
file content (60 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (3)
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
59
60
/* Generated by re2c */
#line 1 "line-01.re"
// re2c $INPUT -o $OUTPUT 
const char* scan(unsigned char* in)
{

#line 8 "line-01.c"
{
	YYCTYPE yych;
	if (YYLIMIT <= YYCURSOR) YYFILL(1);
	yych = *YYCURSOR;
	switch (yych) {
		case '\n': goto yy1;
		case 'a': goto yy3;
		case 'b': goto yy4;
		case 'c': goto yy5;
		case 'd': goto yy6;
		default: goto yy2;
	}
yy1:
yy2:
	++YYCURSOR;
#line 6 "d"
	{
		return ".";
	}
#line 28 "line-01.c"
yy3:
	++YYCURSOR;
#line 1 "a"
	{
		return "a";
	}
#line 35 "line-01.c"
yy4:
	++YYCURSOR;
#line 2 "b"
	{
		return "b";
	}
#line 42 "line-01.c"
yy5:
	++YYCURSOR;
#line 5 "b"
	{
		return "c";
	}
#line 49 "line-01.c"
yy6:
	++YYCURSOR;
#line 2 "d"
	{
		return "d";
	}
#line 56 "line-01.c"
}
#line 1 "e"

}
line-01.re:4:0: warning: control flow is undefined for strings that match '\xA', use default rule '*' [-Wundefined-control-flow]