8245e5a50d
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/flex.git#8a8070ad74c0fa674f7f2b20a782284f6b69e752
22 lines
244 B
Plaintext
22 lines
244 B
Plaintext
%option noyywrap
|
|
%{
|
|
#include <stdio.h>
|
|
|
|
int chars = 0;
|
|
int lines = 0;
|
|
%}
|
|
|
|
%%
|
|
|
|
\n { lines++; chars++; }
|
|
. { chars++; }
|
|
|
|
%%
|
|
|
|
int main(int argc, char ** argv) {
|
|
yylex();
|
|
printf("chars: %d\n", chars);
|
|
printf("lines: %d\n", lines);
|
|
return 0;
|
|
}
|