From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CrFyL-0006gi-RY for mharc-grub-devel@gnu.org; Wed, 19 Jan 2005 08:34:09 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CrFuF-0005EP-Ba for grub-devel@gnu.org; Wed, 19 Jan 2005 08:29:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CrFu5-0005BW-Pj for grub-devel@gnu.org; Wed, 19 Jan 2005 08:29:49 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrFu3-00055E-7i for grub-devel@gnu.org; Wed, 19 Jan 2005 08:29:43 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CrFXO-0001Tg-83 for grub-devel@gnu.org; Wed, 19 Jan 2005 08:06:18 -0500 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 42E5293F7 for ; Wed, 19 Jan 2005 14:01:57 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by vscan-cn.han.nl (venus.han.nl [145.74.65.6]) (amavisd-new, port 10024) with ESMTP id 00336-07 for ; Wed, 19 Jan 2005 14:01:55 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 278EC9357 for ; Wed, 19 Jan 2005 14:01:55 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id DBAFAC047 for ; Wed, 19 Jan 2005 14:01:54 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <41E813E7.9070206@list.ru> <87zmz6in2h.fsf@marco.marco-g.com> <41ED6964.9010102@list.ru> From: Marco Gerards Date: Wed, 19 Jan 2005 13:01:40 +0000 In-Reply-To: <41ED6964.9010102@list.ru> (Serbinenko Vladimir's message of "Tue, 18 Jan 2005 20:54:12 +0100") Message-ID: <87oeflwp1n.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-cn.han.nl Subject: Re: Pre-alpha scripting engine 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: Wed, 19 Jan 2005 13:34:07 -0000 Serbinenko Vladimir writes: > Marco Gerards wrote: > >>Can you please explain how the parser itself works? What kind of >>parser is it, something about the scanner perhaps, etc? > It's two times parser. First time it removes comments and creates > function list.Then it launches "script_load" function. Real script > execution is in script_execute. [...] Ok. What I would like to see in GRUB is a simple top-down parser. That makes it really easy for us to maintain it. Here is some more information about top-down parsers: http://en.wikipedia.org/wiki/Top-down_parsing This wikipedia entry is a bit short, but there is a lot of information you can find about this subject on google. One other thing I noticed is that is is not GCS conforming. GRUB is GCS conforming and we want to keep it that way. The GCS the document that describes our coding style, the way we document changes, etc: http://www.gnu.org/prep/standards/ But as I said before, the most important thing that needs to be done is that Okuji agrees with the syntax. >>How about grub.cfg? It would be nice if it would be possible to embed >>code there. > You can just write in grub.cfg > insmod script > script > And there is no mess between scripts and shell(however shell > functions can be used by scripts...will in alpha) Ok... What I would like to see is that scripting would be possible in the configuration file and that it easily integrates. Thanks, Marco