automake
[Top][All Lists]
Advanced

[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 12:27:51 +0100
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Ahh interesting, I did stumble upon your mail before but I missed
> the bit about the "outfile" option, so I got stuck with that. I
> guess this option is flex-specific but at this point I just want it
> to work, portability is less important since only I need to
> generate the yacc/lex output.

> I was also a bit confused on how to deal with the header produced
> by yacc but the documentation ( at
> http://www.gnu.org/software/automake/manual/html_node/Yacc-and-Lex.html
> ) explains how that is dealt with.

Yeah i think its worth using automake because it much easier i find
than maintaining your own makefiles etc.

The header outputed by yacc/bison with automake just treat it as the
same as y.tab.h just its the name of the parser.y just parser.h so
include that in your flex lexer.

- --Phil




-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoP9LcACgkQAhcOgIaQQ2HCvQCdECGMH8aJgQzprlTLlmzhjRXz
WjcAoJNHovDbybQnRFZsaF7j673eIH9o
=+xP3
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]