aboutsummaryrefslogtreecommitdiff
path: root/sem3/osc/mm10/opg1.l
diff options
context:
space:
mode:
Diffstat (limited to 'sem3/osc/mm10/opg1.l')
-rw-r--r--sem3/osc/mm10/opg1.l22
1 files changed, 22 insertions, 0 deletions
diff --git a/sem3/osc/mm10/opg1.l b/sem3/osc/mm10/opg1.l
new file mode 100644
index 0000000..b5cb478
--- /dev/null
+++ b/sem3/osc/mm10/opg1.l
@@ -0,0 +1,22 @@
+%{
+
+#include <stdio.h>
+
+%}
+
+ting (a|b)abcd
+
+%%
+
+{ting} { printf("Fandt ting %s\n", yytext); return 1; }
+. { printf("Meh"); }
+
+%%
+
+int main(void) {
+
+ printf("yylex: %d\n", yylex());
+
+ return 0;
+
+}