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