[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with linking multiple lex/yacc parsers into one executable
From: |
Philip Herron |
Subject: |
Re: Problems with linking multiple lex/yacc parsers into one executable |
Date: |
Sun, 17 May 2009 18:59:19 +0100 |
User-agent: |
Thunderbird 2.0.0.21 (Macintosh/20090302) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey guys
I just made a quick test project there its not pretty but the
src/Makefile.am
bin_PROGRAMS = test
noinst_LIBRARIES = libparser_a.a libparser_b.a
test_SOURCES = main.c
test_LDADD = libparser_a.a libparser_b.a
libparser_a_a_YFLAGS = -d -p prefix_a
libparser_a_a_LFLAGS = -Pprefix_a
libparser_a_a_SOURCES = parser_a.y lexer_a.l
libparser_b_a_YFLAGS = -d -p prefix_b
libparser_b_a_LFLAGS = -Pprefix_b
libparser_b_a_SOURCES = parser_b.y lexer_b.l
This is the way i think it could be nice to do this multiple lexer
problem. The only thing left to solve is to add an option in ylwrap to
allow a -Prefix option. So maby adding a sed script to go through the
defines from the manual and the extra one Hans Nieser has found to
rename them. Could be a way to do it?
I made each parser a lib so i could give them each sperate YFLAGS and
LFGAGS, for the sperate prefix's.
Anyways let me know what you think?
Is ylwrap part of automake or is that autoconf? Or is it seperate?
- --Phil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkoQUHcACgkQAhcOgIaQQ2F0DwCglPqAk3Nc3VFkmi6P23aDQHPL
TxwAn0YdherIQTvCA0z05A+6mHvktqFt
=DTuI
-----END PGP SIGNATURE-----
multiple-test-case.tar.gz
Description: GNU Zip compressed data
- Re: Problems with linking multiple lex/yacc parsers into one executable, (continued)
- Re: Problems with linking multiple lex/yacc parsers into one executable, Lorenzo Bettini, 2009/05/17
- Re: Problems with linking multiple lex/yacc parsers into one executable, Ralf Wildenhues, 2009/05/17
- Re: Problems with linking multiple lex/yacc parsers into one executable, Philip Herron, 2009/05/17
- Re: Problems with linking multiple lex/yacc parsers into one executable, Ralf Wildenhues, 2009/05/17
- Re: Problems with linking multiple lex/yacc parsers into one executable, Philip Herron, 2009/05/17
- Re: Problems with linking multiple lex/yacc parsers into one executable, Hans Nieser, 2009/05/17
- Re: Problems with linking multiple lex/yacc parsers into one executable, Philip Herron, 2009/05/17
- Re: Problems with linking multiple lex/yacc parsers into one executable,
Philip Herron <=