|
Boost : |
From: rogeeff (rogeeff_at_[hidden])
Date: 2002-01-18 14:48:11
--- In boost_at_y..., "David B. Held" <dheld_at_c...> wrote:
[...]
>
> >> rule<> option_name
> >> = substrings_p(
> >> "-roll",
> >> "-help",
> >> "-repeat_number"
> >> )[ref(choice)];
> >
> >In many cases you have only ONE key per rule and won't be able
> >combine them in one rule (i.e. each argument rule suold be added
> >separetly)
>
> I don't think you understand what this rule is saying. It's saying:
> "Let's define all the option names, and then index them, putting
> the current option index in the variable choice." This is
completely
> generic, and should work for any option style at about the level of
> complexity you suggested.
You may not have all the option names in one place and accordingly
can't combine them in one rule. Given that futher implementation
seems questionable.
[...]
> Dave
Gennadiy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk