logoISU  

CS456 - Systems Programming

Spring 2023

Displaying ./code/lexyacc/example1.l

/*

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");
%%