blob: b5cb478921d6963d89fca16d05e7d9c69e31a437 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
%{
#include <stdio.h>
%}
ting (a|b)abcd
%%
{ting} { printf("Fandt ting %s\n", yytext); return 1; }
. { printf("Meh"); }
%%
int main(void) {
printf("yylex: %d\n", yylex());
return 0;
}
|