Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LfuPp-0007Bz-Mz for mharc-grub-devel@gnu.org; Sat, 07 Mar 2009 06:10:01 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfuPo-0007Br-H2 for grub-devel@gnu.org; Sat, 07 Mar 2009 06:10:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfuPm-0007BI-0d for grub-devel@gnu.org; Sat, 07 Mar 2009 06:10:00 -0500 Received: from [199.232.76.173] (port=47062 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfuPl-0007B5-T0 for grub-devel@gnu.org; Sat, 07 Mar 2009 06:09:57 -0500 Received: from smtp-vbr8.xs4all.nl ([194.109.24.28]:2936) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfuPl-0007GN-EK for grub-devel@gnu.org; Sat, 07 Mar 2009 06:09:57 -0500 Received: from marco (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr8.xs4all.nl (8.13.8/8.13.8) with ESMTP id n27B9fOs005929 for ; Sat, 7 Mar 2009 12:09:53 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <49ADF2ED.3060102@lacqui.com> Mail-Copies-To: mgerards@xs4all.nl Date: Sat, 07 Mar 2009 12:15:39 +0100 In-Reply-To: <49ADF2ED.3060102@lacqui.com> (Kevin Lacquement's message of "Tue, 03 Mar 2009 19:18:05 -0800") Message-ID: <87zlfxd1no.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 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: Sat, 07 Mar 2009 11:10:00 -0000 Kevin Lacquement writes: > 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 so, > is there a way to recreate these deps (library or whatever) within the > constraints of the bootloader? 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. -- Marco