Command language definition

Fredrik Lundh fredrik at effbot.org
Wed Jan 17 03:17:14 EST 2001


Rolf FISCHER wrote:
> My first (and very raw) impression on python was, that the tool has excellent
> capabilites in easy programming, but I didn't see anything the like to check a
> syntax or to define one. This is why I asked for additional tools.

The first and most obvious question is of course why you
cannot use Python itself as the command language...

    http://www.python.org/doc/current/lib/module-code.html

If you insist on building your own command language, you can
perhaps use the cmd (simple CLI) or shlex (shell-like lexing)
modules:

    http://www.python.org/doc/current/lib/module-cmd.html
    http://www.python.org/doc/current/lib/module-shlex.html

For fancier stuff, skip over to the vaults of parnassus and look
under "programming tasks, parsing and formatting"

    http://www.vex.net/parnassus/

Hope this helps!

Cheers /F





More information about the Python-list mailing list