Lex and YACC on fedora 17
Im trying to execute a lex program.But, when i compiled it using the code below:
Code:
lex filename.l |
I haven't tried this but here is an answer.
Code:
step 1: For installing lex and yacc - Raj |
lex will call flex with -l option and maybe giving this output. Try:
Code:
$ flex filename.l |
Thanks for your help Rupadhya.It worked well with yacc.But for lex programs,It is again showing error in the line yylex() as
Code:
unrecognised error |
Quote:
|
It sounds like the real error is in the syntax of your lex source file. Please reduce it to the least amount of code that still reproduces the problem, and post it here (use [CODE][/CODE] tags to preserve formatting).
--- rod. |
All times are GMT -5. The time now is 03:55 PM. |