Unix Programming - flex and bison problem.

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2006 > flex and bison problem.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author flex and bison problem.
rrs.matrix@gmail.com

2006-04-27, 7:56 am

is it posible to combine two lexers..
i have 2 lex files lex1.l and lex2.l
one bison file, scan.y

is it possible to combine all the three.
what i have done is redeclared the yylex function in both the lex
files.
lex1.l - clex()
lex2.l - jlex()

i get lot of errors when i try to compile.
can this be done and if yes how.

tx.

toby

2006-04-27, 7:56 am


rrs.matrix@gmail.com wrote:
> is it posible to combine two lexers..
> i have 2 lex files lex1.l and lex2.l
> one bison file, scan.y
>
> is it possible to combine all the three.
> what i have done is redeclared the yylex function in both the lex
> files.
> lex1.l - clex()
> lex2.l - jlex()
>
> i get lot of errors when i try to compile.
> can this be done and if yes how.


Look at the -P option to flex.

--Toby

>
> tx.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com