All of lore.kernel.org
 help / color / mirror / Atom feed
From: Serbinenko Vladimir <serbinenko.vova@list.ru>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Scripting
Date: Tue, 15 Feb 2005 17:16:49 +0100	[thread overview]
Message-ID: <42122071.1080708@list.ru> (raw)
In-Reply-To: <87ekfibz36.fsf@marco.marco-g.com>

Marco Gerards wrote:

>Hollis Blanchard <hollis@penguinppc.org> writes:
>
>  
>
>>On Feb 13, 2005, at 12:56 PM, Marco Gerards wrote:
>>
>>    
>>
>>>Serbinenko Vladimir <serbinenko.vova@list.ru> 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
>
>
>  
>




  reply	other threads:[~2005-02-15 16:30 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-07 12:10 [Suggestion] LILO-like direct menu item access Marc-Jano Knopp
2005-02-07 14:43 ` [Suggestion] LILO-like direct menu item access && scripting Serbinenko Vladimir
2005-02-07 17:33   ` Marco Gerards
2005-02-07 23:24     ` Marc-Jano Knopp
2005-02-08 10:25       ` Serbinenko Vladimir
2005-02-08 20:56         ` Marc-Jano Knopp
2005-02-08 21:54           ` Marco Gerards
2005-02-08 21:48       ` Marco Gerards
2005-02-08 22:51         ` Marc-Jano Knopp
2005-02-09 10:21           ` Serbinenko Vladimir
2005-02-10 19:24             ` Yoshinori K. Okuji
2005-02-10 21:51               ` Marc-Jano Knopp
2005-02-11  9:38                 ` Yoshinori K. Okuji
2005-02-11 12:09                   ` Marc-Jano Knopp
2005-02-11 14:34                     ` Serbinenko Vladimir
2005-02-11 16:37                       ` Marc-Jano Knopp
2005-02-11 17:13                         ` Serbinenko Vladimir
2005-02-13 18:25                           ` Marc-Jano Knopp
2005-02-10 21:39             ` Marc-Jano Knopp
2005-02-08 13:20   ` Yoshinori K. Okuji
2005-02-08 16:21     ` Serbinenko Vladimir
2005-02-11 20:27       ` Marco Gerards
2005-02-11 22:01         ` Scripting Serbinenko Vladimir
2005-02-13 18:56           ` Scripting Marco Gerards
2005-02-13 19:39             ` Scripting Serbinenko Vladimir
2005-02-13 19:54             ` Scripting Hollis Blanchard
2005-02-14 21:39               ` Scripting Marco Gerards
2005-02-15 16:16                 ` Serbinenko Vladimir [this message]
2005-02-15 22:13                   ` Scripting Yoshinori K. Okuji
2005-02-07 17:20 ` [Suggestion] LILO-like direct menu item access Marco Gerards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42122071.1080708@list.ru \
    --to=serbinenko.vova@list.ru \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.