From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LgiaB-0003o7-Qc for mharc-grub-devel@gnu.org; Mon, 09 Mar 2009 12:44:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lgia9-0003kH-6x for grub-devel@gnu.org; Mon, 09 Mar 2009 12:44:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lgia7-0003gZ-L0 for grub-devel@gnu.org; Mon, 09 Mar 2009 12:44:00 -0400 Received: from [199.232.76.173] (port=41366 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lgia7-0003gJ-8Q for grub-devel@gnu.org; Mon, 09 Mar 2009 12:43:59 -0400 Received: from barmail1.idig.net ([64.34.111.254]:55752) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lgia6-000475-87 for grub-devel@gnu.org; Mon, 09 Mar 2009 12:43:58 -0400 Received: from nweb1.idig.net (nweb1.idig.net [216.187.70.70]) by barmail1.idig.net (Spam Firewall) with ESMTP id F11C722B2564 for ; Mon, 9 Mar 2009 09:43:42 -0700 (PDT) Received: from nweb1.idig.net (nweb1.idig.net [216.187.70.70]) by barmail1.idig.net with ESMTP id brZ4QaKpzYT2gjQU for ; Mon, 09 Mar 2009 09:43:42 -0700 (PDT) Received: from s0106001c109f79db.gv.shawcable.net ([24.108.102.77] helo=[192.168.1.101]) by nweb1.idig.net with esmtpa (Exim 4.69) (envelope-from ) id 1LgiZp-00066v-Uq for grub-devel@gnu.org; Mon, 09 Mar 2009 09:43:42 -0700 Message-ID: <49B5471E.4060007@lacqui.com> Date: Mon, 09 Mar 2009 09:43:10 -0700 From: Kevin Lacquement User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: The development of GRUB 2 References: <49ADF2ED.3060102@lacqui.com> <87zlfxd1no.fsf@xs4all.nl> In-Reply-To: <87zlfxd1no.fsf@xs4all.nl> X-Enigmail-Version: 0.95.7 OpenPGP: id=5282A213 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7D65F2EDC9BB84BEFD6AD5EE" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - nweb1.idig.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lacqui.com X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Subject: Re: Parser X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2009 16:44:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7D65F2EDC9BB84BEFD6AD5EE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Marco Gerards wrote: > Kevin Lacquement writes: >=20 >> Again looking at the script parser, I notices that it uses a >> Yacc-generated parser, but a hand-written tokenizer. Is there a reason= >> that it doesn't use Lex? Is it due to external dependencies, and if s= o, >> is there a way to recreate these deps (library or whatever) within the= >> constraints of the bootloader? >=20 > Right, and I really hate the handwritten parser. It is easy to > cleanly use bison. Lex, OTOH, isn't easy and clean to use. IIRC it > depended on file IO, etc. If you know a *clean* way to deal with > this, I would favor it. Making all kinds of dirty stubs is something > I don't really like. >=20 I've looked at flex (including its source), and it looks like the standard library #includes are hardcoded in. I'm going to look into some alternatives to allow the lexer to be created cleanly without adding too much of a burden to other developers in the way of project dep= s. Alternatively, is there a clean, portable way to make the C compiler think that the grub headers are actually the system headers? Or possibly to replace the system header calls in the generated C code? (Using sed or something similar) --=20 Sic non confunctus, non reficiat. --------------enig7D65F2EDC9BB84BEFD6AD5EE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkm1RyQACgkQASQ0HFKCohPKBACeLzjWhH1Yxw2xbwF5Fq3hqcaO wyIAoIFDqF26RvPZUcMKLLQ5HbR65m8N =bc3Z -----END PGP SIGNATURE----- --------------enig7D65F2EDC9BB84BEFD6AD5EE--