Processing of INEXIT

If INEXIT is specified, the compiler loads the exit module (mod1) during initialization, and invokes the module using the OPEN operation code (op code). The module can then prepare its source for processing and pass the status of the OPEN request back to the compiler. Subsequently, each time the compiler requires a source statement, the exit module is invoked with the GET op code.

The exit module then returns either the address and length of the next statement, or the end-of-data indication if no more source statements exist. When end-of-data occurs, the compiler invokes the exit module with the CLOSE op code so that the module can release any resources that are related to its input.

The compiler uses a structure, passed by reference, to communicate with the exit module.

Related references  
Parameter list for exit modules