The TRF House of Software

cmdline blurb

cmdline is a set of programs and functions that generates command-line parsers, with hooks for calling semantic routines.

A simple command line definition syntax is defined; once the command lines have been cast in this form, the definition is processed into a set of tables; these tables are then compiled into the user's program along with a user-called routine which examines the input command for conformance with the syntax described by the tables, calling semantic routines at any point along the way.

When the command is completely recognized, the user-defined command completion routine performs the action implied by the command, with the values saved by the semantic routines which were called during command recognition.

This version is quite limited as it recognizes keywords and only a very few defineable tokens; a new version (coming soon with any luck) will have user-defineable tokens recognized by regular-expression pattern matching.