This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

yacc and flex


Hi,

I am trying to create a lex/yacc program with automake support.  I was
used to include the output from flex into the yacc file.  So the token
definitions of yacc are visible for flex.  But when I use automake the
Makefile wants to compile it this order:

flex  conf_lexer.l && mv lex.yy.c conf_lexer.c
gcc   -c conf_lexer.c
bison -y  conf_parser.y && mv y.tab.c conf_parser.c
gcc   -c conf_parser.c

And this means, that the tokens are not available in the conf_lexer.c
file.  How can I solve this problem?

Sascha


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]