summaryrefslogtreecommitdiff
path: root/test/input11.i.re
blob: cda4c216b7629af3c4e81f48bb2cd9532870f516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*!re2c

letter  = [a-zA-Z];
digit   = [0-9];
number  = "0" | ("-"? [1-9] digit*);
name    = letter (letter|digit)*;
config  = "re2c:" (letter|"_") (letter|digit|"_"|":")*;

config	{ return 0; }
name	{ return 1; }
number	{ return 2; }

.|"\n"	{ return -1; }

*/