
The two basic sources of input to CorpusSearch are the source file (a text file containing parsed, labelled sentences) and the command file (containing the query, the node boundary, and printing specifications.)
A sentence is taken from the source file and a sentence vector representing it is built by the class MakeVector. The query is take from the command file and a function-calls vector representing it is built by the class Commander.
The sentence-vector and function calls from the function-calls vector are sent to the search functions. The search functions output result vectors which may be sent to the printing functions or combined and sent to the AND function, depending on the function-calls vector.
The AND function outputs a result vector which may be sent to the printing functions, or combined with search-function results and sent back through the AND function, depending on the function-calls vector.