From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EAYFF-0008L1-50 for mharc-grub-devel@gnu.org; Wed, 31 Aug 2005 15:27:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EAYEq-0008FY-So for grub-devel@gnu.org; Wed, 31 Aug 2005 15:27:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EAYEk-0008CR-SG for grub-devel@gnu.org; Wed, 31 Aug 2005 15:27:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EAYEk-0008CA-O9 for grub-devel@gnu.org; Wed, 31 Aug 2005 15:27:06 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EAYDA-0002OH-6n for grub-devel@gnu.org; Wed, 31 Aug 2005 15:25:28 -0400 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 6AE308AFC for ; Wed, 31 Aug 2005 21:22:41 +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 20744-07 for ; Wed, 31 Aug 2005 21:22:39 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id B75BD8589 for ; Wed, 31 Aug 2005 21:22:38 +0200 (CEST) Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 0666DC045 for ; Wed, 31 Aug 2005 21:22:38 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <42FF0C53.1070601@gmail.com> <200508141635.29675.okuji@enbug.org> <42FF6B6D.4050403@gmail.com> <200508142001.25893.okuji@enbug.org> <42FF8DB7.10700@gmail.com> <87vf27xfsq.fsf@student.han.nl> <430C3FA4.308@gmail.com> From: Marco Gerards Date: Wed, 31 Aug 2005 21:22:38 +0200 In-Reply-To: <430C3FA4.308@gmail.com> (Vladimir Serbinenko's message of "Wed, 24 Aug 2005 11:36:36 +0200") Message-ID: <871x49ud1d.fsf@student.han.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) 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: [Patch] 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, 31 Aug 2005 19:27:14 -0000 Vladimir Serbinenko writes: > I wrote the preciew version of scripting engine. I'll add some comments > soonly. > Parser parses everytime one command because the commands could be > entered from > commandline. Bison converts in kind of pseudocode. Arithmethic support > will be done > by separate parser because arithmetic parse is very different form > bash one. Can't this be done in the same bison parser? Or what do you mean? I noticed that you have hand written yylex, wouldn't it be a lot easier to use flex for this? In that case you can easily detect tokens using regular expressions. This makes maintaining the tokenizer really easy. Thanks, Marco