This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
yacc and flex
- To: automake at gnu dot org
- Subject: yacc and flex
- From: Sascha Ziemann <szi at aibon dot ping dot de>
- Date: 22 Mar 2000 21:29:38 +0100
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