[an error occurred while processing this directive]
Preconditions:
ls is positioned to to read its first argument.
The first argument of ls is not a key in theTable.
The second argument of ls is an integer.
Preconditions:
argc is 1 or 2.
if argc is 2 then argv[1] is the name of a readable file of commands.
local variables: char * k; int dat; read a string from ls into k (LineScanner readString() read an int from ls into dat (LineScanner readInt() if the error count for ls is 0 (LineScanner errorCount() add dat to theTable with key k (Table add() else print the first error in ls (LineScanner printFirstError()
addCommand() is called once for each command to be added. The synopsis, description, and command procedure for the command are passed as parameters.
ALGORITHM_DESCRIPTION