Arg decoding with a template?

Steve Holden sholden at holdenweb.com
Tue Jul 31 19:56:24 EDT 2001


"David Bolen" <db3l at fitlinxx.com> wrote in message
news:u8zh4u0b6.fsf at ctwd0143.fitlinxx.com...
> Dale Strickland-Clark <dale at riverhall.NOSPAMco.uk> writes:
>
> > I guess what I had in mind was a simple but effective equivelent
> > that I used to use with BCPL. A function called rdargs, which I
> > think also became part of AmigaDOS
>
> If you do get a moment to point to any reference or just write up a
> quick summary, I'm sure there would be some implementation suggestions
> available.
>
> Presumably any parsing template still has to deal with issues such as
> flagging options (optional pieces) versus standard arguments,
> delimiters and quoting them, etc...  But there's obviously also
> multiple ways to make choices about each of those issues.
>
Dale:

Was this the one that allowed to you define command lines like

    COPY FROM <file> TO <file>

and variations could be deduced from the noise words? I seem to remember a
college chum of mine working in BCPL with a scheme like this, circa 1978,
but have only this fading memory.

what-was-i-saying-ly y'rs  - steve
--
http://www.holdenweb.com/


\-----------------------------------------------------------------------/





More information about the Python-list mailing list