From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ETLaQ-0005E1-GK for mharc-grub-devel@gnu.org; Sat, 22 Oct 2005 11:47:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETLaP-0005Cx-13 for grub-devel@gnu.org; Sat, 22 Oct 2005 11:47:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETLaO-0005Bt-8h for grub-devel@gnu.org; Sat, 22 Oct 2005 11:47:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETLaO-0005Bp-2z for grub-devel@gnu.org; Sat, 22 Oct 2005 11:47:08 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ETLaO-00026b-3l for grub-devel@gnu.org; Sat, 22 Oct 2005 11:47:08 -0400 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 27CB686B0 for ; Sat, 22 Oct 2005 17:47:07 +0200 (CEST) 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 00374-01 for ; Sat, 22 Oct 2005 17:47:06 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 6766A84AF for ; Sat, 22 Oct 2005 17:47:06 +0200 (CEST) Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 2D5C3C046 for ; Sat, 22 Oct 2005 17:47:06 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <87pspxtzyu.fsf@student.han.nl> <435A50BE.5030801@gmail.com> <87hdb9twr9.fsf@student.han.nl> <435A5CAF.40103@gmail.com> From: Marco Gerards Date: Sat, 22 Oct 2005 17:47:06 +0200 In-Reply-To: <435A5CAF.40103@gmail.com> (Vladimir Serbinenko's message of "Sat, 22 Oct 2005 17:37:19 +0200") Message-ID: <87d5lxtuyt.fsf@student.han.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (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: Scripting support 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, 22 Oct 2005 15:47:09 -0000 Vladimir Serbinenko writes: >>That can be translated into some kind of pseudo language: >> >>1: list = 1 2 3 >>2: read i, list >>3: echo $i >>4: check list >>5: je 2 >> >>I know it's stupid and kind of silly like this. But we have to define >>a language. It's important to discuss this on the list, IMO. >> >> >> > I thought about (a): Right. It's also possible. > The question is how many commands to make: a lot (like in a where > nearly every internal command corresponds to a scripting command) or > make so few commands as possible. I wonder which approach is better > (it's question about bugs and readibility, of course, not about speed) I think we first have to determine: 1) Which commands should be supported. 2) The smallest subset of commands that should be generated. Did you have a look at how bash does this? Perhaps it even has a completely different approach... >>Which mail are you talking about (subject and date)? I must have >>missed a few the last months. :-( >> >> > Re: [Patch] Scripting engine 25.09.2005 > [Patch] Scripting engine 24.08.2005 > It's just demonstration of some ideas. Now I think with new splitter > it would be better to keep arglist unparsed. In this patch it was that > if we have > echo 1 2 3\;\$ ab$i; > lexer returns (schematically) > STRING(echo) STRING(1) STRING(2) STRING (3;$) STRING(abVAR(i)) SEMICOLON > now I would do that it returns: > STRING(echo 1 2 3\;\$ ab$i) SEMICOLON Perhaps the best is to make a list of tokens we need to support. With such list we can determine how to detect them. Thanks, Marco