/* Compile with : > lex example1.l > gcc lex.yy.c -o example1 -lfl */ %{ #include <stdio.h> %} %% stop printf("Stop command received\n"); start printf("Start command received\n"); %%