From: reinert <reinkor@gmail.com>
Subject: Re: My first test of github: cpros - lightweight Ada command processor
Date: Tue, 26 Sep 2017 05:56:26 -0700 (PDT)
Date: 2017-09-26T05:56:26-07:00 [thread overview]
Message-ID: <761e5834-553f-4f52-8772-e461098fdad7@googlegroups.com> (raw)
In-Reply-To: <oqd868$iki$1@dont-email.me>
Thanks, this was something.
Before I dive deeper into it, by "command processor" I did here mean something with an interactive functionality, for short:
1. read a command from terminal and the possibility to process
it (and one normally gets a response on the terminal or a graphical window -
or some hardware response, robot movement etc).
2. read command lines form a file (for example by a command like
"do <commandfile> <arg1> <arg2> ... <argN>" and process the commands in
sequence. This "command file" may include another
"do <another_command_file" etc indefinitely deep.
3. Some arithmetic, operations for concatination (string handling)
etc may be included. A "delay" (generally timing) may be included.
In other words something with a scripting functionality. I am not sure
this should be called "parsing"?
Could it be argued that such a "command processor" could be included in a standard Ada package? Yes, some smartass' may argue that this is easy to
program and do oneself, but such functionality may help development and
testing of programms?
reinert
On Tuesday, September 26, 2017 at 11:55:22 AM UTC+2, Brian Drummond wrote:
> On Mon, 25 Sep 2017 10:53:19 -0700, reinert wrote:
>
> > Funny with comments about readability.
> >
> > By the way: are there practical and light-weight command processors in
> > Ada?
> > Maybe even some with easy readable code?
>
> What do you mean by "command processor"? If you mean something to parse
> an executable's command line, there's the Generic Command Line Parser,
> GCLP at
> https://launchpad.net/gclp
>
> I've used it a few times, and like it.
>
> -- Brian
next prev parent reply other threads:[~2017-09-26 12:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-24 15:07 My first test of github: cpros - lightweight Ada command processor reinert
2017-09-25 7:20 ` reinert
2017-09-25 13:08 ` AdaMagica
2017-09-25 14:04 ` reinert
2017-09-25 16:14 ` AdaMagica
2017-09-25 17:51 ` reinert
2017-09-25 17:53 ` reinert
2017-09-25 17:59 ` reinert
2017-09-26 9:55 ` Brian Drummond
2017-09-26 12:56 ` reinert [this message]
2017-09-26 13:13 ` Dmitry A. Kazakov
2017-09-26 17:07 ` Simon Wright
2017-09-25 15:49 ` Frank Buss
2017-09-25 16:08 ` Jeffrey R. Carter
2017-09-25 18:34 ` reinert
2017-09-26 16:25 ` AdaMagica
2017-09-27 6:07 ` reinert
2017-09-27 16:16 ` Jacob Sparre Andersen
2017-09-27 17:15 ` reinert
2017-09-28 8:11 ` reinert
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox