aboutsummaryrefslogtreecommitdiff
path: root/08/main.l
diff options
context:
space:
mode:
Diffstat (limited to '08/main.l')
-rw-r--r--08/main.l14
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%{
2extern int yylval;
3%}
4
5%%
6a return A;
7b return B;
8. return yytext[0];
9\n return 0;
10%%
11
12int yywrap() {
13 return 1;
14}