From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EWGKk-0003Qg-EM for mharc-grub-devel@gnu.org; Sun, 30 Oct 2005 11:47:02 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EWGKi-0003OK-AE for grub-devel@gnu.org; Sun, 30 Oct 2005 11:47:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EWGKe-0003Mw-1o for grub-devel@gnu.org; Sun, 30 Oct 2005 11:46:58 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWGKd-0003Mn-Kb for grub-devel@gnu.org; Sun, 30 Oct 2005 11:46:55 -0500 Received: from [64.233.182.200] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EWGKd-0000n5-QY for grub-devel@gnu.org; Sun, 30 Oct 2005 11:46:55 -0500 Received: by nproxy.gmail.com with SMTP id o60so25902nfa for ; Sun, 30 Oct 2005 08:46:54 -0800 (PST) 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=toBWRy+SGdaeDE85mxNvTXbe3343TwYJKc8f9e8mKFCviJ/l9fFivW0ro4ilJMPwfXGVjZWuaBIE+B8s2JOlgxUAx7+XSajcYJ0+CB41UC7Vt9st2jEbSizHa5v/QiTAkZ9nx5lrMSPoB1Oj+H9i1NJyt8Clrh2c3OlYMCmpNaE= Received: by 10.48.80.4 with SMTP id d4mr734517nfb; Sun, 30 Oct 2005 08:46:54 -0800 (PST) Received: from ?192.168.1.100? ( [83.76.229.87]) by mx.gmail.com with ESMTP id x24sm391509nfb.2005.10.30.08.46.53; Sun, 30 Oct 2005 08:46:54 -0800 (PST) Message-ID: <4364F8F9.9080407@gmail.com> Date: Sun, 30 Oct 2005 17:46:49 +0100 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 , metgerards@student.han.nl References: <87u0f0t30k.fsf@student.han.nl> <4364DB7F.1060309@gmail.com> <87vezfgfde.fsf@student.han.nl> In-Reply-To: <87vezfgfde.fsf@student.han.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Scripting support (PATCH) 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: Sun, 30 Oct 2005 16:47:00 -0000 Marco Gerards wrote: > > >I didn't know that bison had such buffer. > It doesn't. This buffer is created by lexer in my example. And menu is always stored unparsed and parsed only just before >>execution. Than editing is no problem. >> >> > >I think you have to parse it immediately and both store parsed and the >unparsed code. After editing you do the same again. > > > I see 2 approaches: 1) Parse menu commands right before executing 2) Parse them directly and reparse after editing. I think 1st one is cleaner because the parser will be at the same place after editing or before >This solution is required if you want to be able to edit the complete >script instead of just the separate menu entries. I think this is not >interesting, but if someone wants to know I can say more about this. > > I think also. Because theese modifications are lost after boot they are generally modified only to boot one time an OS with specifical parameters and you don't need scripts for this. Vladimir 'phcoder' Serbinenko