source: vendor/flex/2.5.33/examples/manual/user_act.lex@ 3031

Last change on this file since 3031 was 3031, checked in by bird, 19 years ago

flex 2.5.33.

File size: 303 bytes
Line 
1%{
2
3#include <ctype.h>
4
5void user_action(void);
6
7#define YY_USER_ACTION user_action();
8
9%}
10
11%%
12
13.* ECHO;
14\n ECHO;
15
16%%
17
18void user_action(void)
19{
20 int loop;
21
22 for(loop=0; loop<yyleng; loop++){
23 if(islower(yytext[loop])){
24 yytext[loop] = toupper(yytext[loop]);
25 }
26 }
27}
28
29
30
31
Note: See TracBrowser for help on using the repository browser.