diff options
author | Akshay <[email protected]> | 2021-06-18 05:30:04 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-06-18 05:30:04 +0100 |
commit | 015cbbfb9dd7a08355c25b3a3ea93621b2a64c57 (patch) | |
tree | a910adc208ee1fd54a4566d74380a164f4b03f12 /15/main.l | |
parent | f9f62e75f3b234b5daf3bc25e995f9f0f56ca0a2 (diff) |
Diffstat (limited to '15/main.l')
-rw-r--r-- | 15/main.l | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,12 +9,12 @@ extern int yylval; | |||
9 | yylval=yytext[0]; | 9 | yylval=yytext[0]; |
10 | return NUM; | 10 | return NUM; |
11 | }; | 11 | }; |
12 | [a-zA-Z]+? { | 12 | [a-zA-Z_][a-zA-Z0-9]* { |
13 | yylval=yytext[0]; | 13 | yylval=yytext[0]; |
14 | return IDENT; | 14 | return IDENT; |
15 | } | 15 | } |
16 | . return yytext[0]; | 16 | . return yytext[0]; |
17 | \n return 0; | 17 | \n return NL; |
18 | %% | 18 | %% |
19 | 19 | ||
20 | int yywrap() { | 20 | int yywrap() { |