Command language definition

Harald Kirsch kirschh at lionbioscience.com
Wed Jan 17 03:20:44 EST 2001


Rolf Fischer <fischer at intes.de> writes:

> Dear Python specialists,
> 
> could you give me some hints whether you would use python to setup
> a command language for a gui in order to be able to establish
> a batch mode (with automated testing options) ?
> 
> Do I have to program each command with its allowed paramters, etc ?
> Or is there a combination with another tool that you would recommend ?

Why don't you simply code the (additional) commands as python
functions at let the user use them, thereby having python as the
command language. Of course, if the user uses wrong syntax, (s)he will
be left with python error messages. The question is if you can do any
better if you do your own parsing and validation. Chances are you end
up with a new python/tcl/perl/guile/younameit interpreter.

  Harald Kirsch

-- 
----------------+------------------------------------------------------
Harald Kirsch   | kirschh at lionbioscience.com | "How old is the epsilon?"
LION Bioscience | +49 6221 4038 172          |        -- Paul Erdös
       *** Please do not send me copies of your posts. ***



More information about the Python-list mailing list