--------------------------------------------------------------
-------------------------------------------------------------------
[gexxxx@xxxxki_note lex]$ ./lexer4c text.c
Reserved Word Count: 4
ID Count: 16
NUM Count: 1
Line Count: 15
Word Count: 25
Char Count: 135
[gexxxx@xxxxki_note lex]$
-------------------------------------------------------------
------------------------------------------------------------------
%{
/*
lexer4c.l
simple C syntax analyzer , written in Lex.
*/
enum {
LOOKUP=0,
DIV,
MOD,
NUM,
ID,
RELATION,
FOR,
CASE,
|