From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ETLq5-0000pd-M5 for mharc-grub-devel@gnu.org; Sat, 22 Oct 2005 12:03:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETLq3-0000oE-17 for grub-devel@gnu.org; Sat, 22 Oct 2005 12:03:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETLq1-0000mr-Ap for grub-devel@gnu.org; Sat, 22 Oct 2005 12:03:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETLq1-0000mo-6x for grub-devel@gnu.org; Sat, 22 Oct 2005 12:03:17 -0400 Received: from [64.233.184.205] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ETLq0-00036f-W9 for grub-devel@gnu.org; Sat, 22 Oct 2005 12:03:17 -0400 Received: by wproxy.gmail.com with SMTP id 36so456455wra for ; Sat, 22 Oct 2005 09:03:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:disposition-notification-to:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=tvrmU+58SdeaqC7FeboXp6F/uF3PUhqyZxhMHcJ4cZoKbAMaOC1P5JUytHQItZ1uZQYStfqbHvqneWeLtZQ1isnFJ1f6ZrmBKAYaiR6abQWNgbEavU+rzt/TtdgHniBZ8ZlIEXd/UjPkusIy2MoIPBlJS22eIHezcdsXHCvBGMk= Received: by 10.54.118.5 with SMTP id q5mr2361245wrc; Sat, 22 Oct 2005 09:03:16 -0700 (PDT) Received: from ?192.168.1.100? ( [83.76.227.245]) by mx.gmail.com with ESMTP id 43sm1458521wri.2005.10.22.09.03.15; Sat, 22 Oct 2005 09:03:16 -0700 (PDT) Message-ID: <435A62C2.6030408@gmail.com> Date: Sat, 22 Oct 2005 18:03:14 +0200 From: Vladimir Serbinenko User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050804) X-Accept-Language: en-us, en MIME-Version: 1.0 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> <87d5lxtuyt.fsf@student.han.nl> In-Reply-To: <87d5lxtuyt.fsf@student.han.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 16:03:19 -0000 Marco Gerards wrote: >Vladimir Serbinenko writes: > > > > >I think we first have to determine: > >1) Which commands should be supported. > > What about && || ! case do done elif else esac fi for function if in then until while { } [[ ]] in scripting engine. I think that time is completely useless. What do you think about select? >2) The smallest subset of commands that should be generated. > > > I think jmp je/jne invert (not for last return) exec regexp (check if string matches regexp) push pop getelem (get element from list) should be enough External commands would be eval and [[ functions can be stored directly by parser > >Perhaps the best is to make a list of tokens we need to support. With >such list we can determine how to detect them. > > I think just comparing (after \ one character is not compared) might be enough. ; newline ;; && || ! case do done elif else esac fi for function if in then until while { } [[ ]] >Thanks, >Marco > > > > Vladimir 'phcoder' Serbinenko