// // Here is a sample command file // INSERT 0 foo 1 INSERT 0 foo 2 PRINT 0 INSERT 1 bar 1 INSERT 1 baz 2 PRINT 1 UNION 2 0 1 PRINT 2 FIND 2 foo REMOVE 2 foobar REMOVE 2 foo PRINT 2 // // Here is the output that might be generated for the command file above. // Note that all commands are echoed. // INSERT 0 foo 1 INSERT 0 foo 2 Error: attempt to insert duplicate key PRINT 0 1, foo INSERT 1 bar 1 INSERT 1 baz 2 PRINT 1 1, bar 2, baz UNION 2 0 1 PRINT 2 1, foo 1, bar 2, baz FIND 2 foo The value associated with foo is 1 REMOVE 2 foobar Error: key foobar not found REMOVE 2 foo PRINT 2 1, bar 2, baz