help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing/defining getopt style strings


From: Michael Treibton
Subject: Re: Parsing/defining getopt style strings
Date: Mon, 17 Aug 2015 15:20:59 +0100

Hi Alfonso,

Thank you for your reply.  Boost lib? This is in C, not C++, and if
it's the libboost I'm thinking you mean, how would this help me with
an implementation of getopt strings in YACC?  Indeed, I could just use
getopt(), but this is now getting off topic.

Have I misundertood?

Kindly,
Michael

On 17 August 2015 at 14:26, Alfonso Urdaneta
<address@hidden> wrote:
> Hi Michael.
>
> There's a boost lib for what you want to do that's probably easier.
>
> Alfonso
>
>
> On Monday, August 17, 2015, Michael Treibton <address@hidden>
> wrote:
>>
>> Hello all,
>>
>> I have an existing application which uses a lot of YACC for its
>> configuration file.  In trying to stream-line a lot of options, and
>> for wider changes surrounding the application itself, I'm looking at
>> trying to define something in YACC which would allow to the inclusion
>> of getopt style strings.
>>
>> Is this possible?
>>
>> By getopt, I mean BSD-style getopt where there's only a single-letter
>> option.  Hence, in terms of what this might look like in the
>> configuration file itself, I was thinking:
>>
>>         some_command -ab -c option some_other_option
>>
>> Where you can see "-ab" in this case are just options, with "-c"
>> taking an "option", and then "some_other_option" being separate.
>>
>> Is this even possible, I wonder?
>>
>> TIA!
>>
>> Michael
>>
>> _______________________________________________
>> address@hidden https://lists.gnu.org/mailman/listinfo/help-bison
>
>
>
> --
> alfonso e. urdaneta



reply via email to

[Prev in Thread] Current Thread [Next in Thread]