comp.lang.ada
 help / color / mirror / Atom feed
From: Natasha Kerensikova <lithiumcat@gmail.com>
Subject: Starter project: getopt_long in Ada
Date: Fri, 25 Nov 2011 10:47:17 +0000 (UTC)
Date: 2011-11-25T10:47:17+00:00	[thread overview]
Message-ID: <slrnjcushg.vl6.lithiumcat@sigil.instinctive.eu> (raw)

Hello,

I have been tinkering with Ada for a while now, and I'm starting to feel
ready to write code that is (somewhat) useful, and to publish it.

I'm starting with a pure-Ada implementation of a getopt_long-like
command line argument processor. The motivation is that next project
will like have a command-line interface (before I go into other fancy
I/O), and I like having long option names, especially in scripts I'm
likely to re-read in the future. While I have found a few
implementations of getopt, for getopt_long I have only found binding to
the C function, which involves C strings and C arrays.

So I wrote a Getopt_Long package, along with a test suite, that can be
found at:
http://fossil.instinctive.eu/natools/dir?ci=tip
(I went against fossil advice of requiring going through a CAPTCHA
before reading the files, it might change in the future if non-human
hits do strain the server.)

Everything is under ISC licence, so anybody can re-use it, even though
it's currently still very young and under development.

I would gladly welcome any constructive comment about this code, whether
it's on the design, the implementation, the style, or anything else. The
only reason for publishing it at this point is to ask for feedback in
order to progress. I'm aware that a code review is a lot to ask, but I
would really welcome any help towards improving my mastery of Ada.


Thanks in advance for your comments and your help,
Natasha



             reply	other threads:[~2011-11-25 10:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-25 10:47 Natasha Kerensikova [this message]
2011-11-25 16:39 ` Starter project: getopt_long in Ada Georg Bauhaus
2011-11-26 18:13   ` Natasha Kerensikova
2011-11-26 20:47     ` Jeffrey Carter
2011-11-28 15:49     ` Georg Bauhaus
2011-11-28 17:18       ` Natasha Kerensikova
2011-11-27  8:21   ` Yannick Duchêne (Hibou57)
2011-11-27 12:30     ` Natasha Kerensikova
2011-11-27 15:11       ` Yannick Duchêne (Hibou57)
2011-11-28  8:21         ` Natasha Kerensikova
2011-11-28 13:02           ` Yannick Duchêne (Hibou57)
2011-11-27  8:05 ` Yannick Duchêne (Hibou57)
2011-11-27 12:39   ` Natasha Kerensikova
2011-11-27 14:52     ` Yannick Duchêne (Hibou57)
2011-11-27  8:09 ` Yannick Duchêne (Hibou57)
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox