diff options
Diffstat (limited to 'sem1/osc/mm10/opg1.l')
-rw-r--r-- | sem1/osc/mm10/opg1.l | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sem1/osc/mm10/opg1.l b/sem1/osc/mm10/opg1.l new file mode 100644 index 0000000..b5cb478 --- /dev/null +++ b/sem1/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; + +} |