Hi Raman,
On Sat, Sep 13, 2008 at 08:18:18AM -0400, raman narasimhan wrote:
> [...]
> Executing this code gives the result:
> *debian:~# lex idtoken.l -ll
> lex: can't open -ll
> /usr/bin/m4:stdin:2550: ERROR: end of file in string
> debian:~#
> *
> what do i do to solve this problem???
You have to
i was doing a lex program for token identification
CODE:
%{
#include
#include
%}
DIGIT [0-9]
ID [A-Za-z]+
WS [\n\t" "]
%%
{DIGIT}+ {printf("Integer:%d\n",atoi(yytext));}
{DIGIT}+"."{DIGIT}+ {printf("Float:%g\n",atof(yytext));}
[a-z]+"."h {printf("Header File:%s\n",yytext);}
#include|printf|if|else|
2 matches
Mail list logo