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