summaryrefslogtreecommitdiff
path: root/test/repeat-03.cgir.re
blob: 3b033e56ff26a52e89eee92e6fdbdd6040288e29 (plain)
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
// multiple scanners

/*!types:re2c */

void scan(unsigned char* in)
{
/*!rules:re2c

<*>		"a"	{ return "a"; }
<*>		.	{ return "."; }
<r1>	"b" { return "b"; }
<r1,r2>	"c" { return "c"; }

*//*!use:re2c

<r1>	"1" { return "1"; }

*/

}

void scan(unsigned short* in)
{
/*!use:re2c

<r1>	"2" { return "2"; }

*/
}