Displaying ./code/lexyacc/example1.l/*
Compile with :
> lex example1.l
> gcc lex.yy.c -o example1 -lfl
this is modified from the original tutorial
*/
%{
#include <stdio.h>
#include <stdlib.h>
%}
%%
stop printf("Stop command received\n");
start printf("Start command received\n");
hello printf("Hello, world!\n");
exit exit(0);
%%
|