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