diff options
Diffstat (limited to '9/main.l')
-rw-r--r-- | 9/main.l | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/9/main.l b/9/main.l new file mode 100644 index 0000000..04c6bf0 --- /dev/null +++ b/9/main.l | |||
@@ -0,0 +1,16 @@ | |||
1 | %{ | ||
2 | #include "y.tab.h" | ||
3 | extern int yylval; | ||
4 | %} | ||
5 | |||
6 | %% | ||
7 | a return A; | ||
8 | b return B; | ||
9 | c return C; | ||
10 | . return yytext[0]; | ||
11 | \n return 0; | ||
12 | %% | ||
13 | |||
14 | int yywrap() { | ||
15 | return 1; | ||
16 | } | ||