The Project

Chapter 4. Invocation

sid should be invoked in the following manner:

sid options input-files output-files

The options are described later. The input files should be a number of input file names dependent upon the output language. The first input file is the sid grammar file. In the case of either C dialects there should be one other input file that provides C specific information to sid. The number of output files is also language specific. At present, two output files should be specified for the C languages. The first should be a .c file into which the parser is written; the second should be a .h file into which the terminal definitions and external function declarations are written.

The options list should consist of zero or more of the following options. There are short forms for each of these options as well; see the sid manual page for more information on invocation.