problem with flex; pls reply urgent

2008-09-13 Thread raman narasimhan
i was doing a lex program for token identification CODE: %{ #includestdio.h #includemath.h %} 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);}

Re: problem with flex; pls reply urgent

2008-09-13 Thread Axel Freyn
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 call