From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D15aP-0007Th-49 for mharc-grub-devel@gnu.org; Tue, 15 Feb 2005 11:30:05 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D15aL-0007TB-VA for grub-devel@gnu.org; Tue, 15 Feb 2005 11:30:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D15aK-0007Sh-De for grub-devel@gnu.org; Tue, 15 Feb 2005 11:30:00 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D15aJ-0007SJ-Rx for grub-devel@gnu.org; Tue, 15 Feb 2005 11:29:59 -0500 Received: from [194.67.23.121] (helo=mx1.mail.ru) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D15Mq-0003Bw-0O for grub-devel@gnu.org; Tue, 15 Feb 2005 11:16:05 -0500 Received: from [83.77.225.85] (port=1199 helo=[192.168.1.100]) by mx1.mail.ru with esmtp id 1D15Mm-000Hds-00 for grub-devel@gnu.org; Tue, 15 Feb 2005 19:16:01 +0300 Message-ID: <42122071.1080708@list.ru> Date: Tue, 15 Feb 2005 17:16:49 +0100 From: Serbinenko Vladimir User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: The development of GRUB 2 References: <20050207121011.GC1380@mjk.myfqdn.de> <42077EA1.5090403@list.ru> <200502081420.43561.okuji@enbug.org> <4208E717.9040205@list.ru> <87650yonaj.fsf@marco.marco-g.com> <420D2B3B.9040702@list.ru> <87ekfkthkf.fsf@marco.marco-g.com> <87ekfibz36.fsf@marco.marco-g.com> In-Reply-To: <87ekfibz36.fsf@marco.marco-g.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected Subject: Re: Scripting 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: Tue, 15 Feb 2005 16:30:02 -0000 Marco Gerards wrote: >Hollis Blanchard writes: > > > >>On Feb 13, 2005, at 12:56 PM, Marco Gerards wrote: >> >> >> >>>Serbinenko Vladimir writes: >>> >>> >>>>>What kind of parser is it? >>>>> >>>>> >>>>> >>>>It's a direct parser with aritmetic subparser. Main parser is >>>>grub_bash_execute, arithmetic subparser is grub_bash_eval_arith. >>>>grub_bash_execute determinates the special cases (loops,conditions, >>>>functions,...) for other cases (commands,assignments, function >>>>calling) >>>>it calls grub_bash_split_tokens, grub_bash_expand_braces and >>>>grub_bash_expand_dollar >>>> >>>> >>>> >>>>> I have never seen this in a top-down or bottom-up parser I have >>>>> studied. >>>>> >>>>> >>>>I don't like to write the things reffering every time to algorithm. >>>>Genereally I take some ideas and I write myself, at my own. >>>> >>>> >>>What do you mean? >>> >>>The problem is that I like proven concepts. And when you use a >>>commonly known parser design many people will be able to understand >>>it. To me this is REALLY important. I wonder what other developers >>>think of that. >>> >>> >>I agree. Hand-written parsers are very hairy to implement, with nasty >>bugs and corner cases. Although I haven't studied the theory, I know >>that there are traditional parsing/lexing/whatever techniques that are >>well-understood. >> >> > >Right. But I would not have a problem with a hand written parser, as >long as I can understand it. :) > > > >>In fact, there's a whole bunch of tools like flex and bison that we >>could use to avoid hand-written errors. Why don't we use those? >> >> > >One thing that should be looked into before using flex and bison is >how much the binary will grow. > I think less than with hand-writing parser because of its structure >Another thing is how to integrate it >with the command line. > > > I know how to write it and if you have no objection I'll do it. >Thanks, >Marco > > > >_______________________________________________ >Grub-devel mailing list >Grub-devel@gnu.org >http://lists.gnu.org/mailman/listinfo/grub-devel > > > >