The Brain Aid Prolog (BAP) Compiler is an application running on the system just like any other program. It is written in Brain Aid Prolog and still subject to enhancements. The compiler is split into three separate parts: the scanner/parser , the code generator , and the assembler . In addition an error server collects the error messages of all modules and directs them to a common output. The compiler reads a source file written in Brain Aid Prolog, which should have an filename ending with '.BAP', and generates an executable '.LKD' output file that then can directly be loaded and executed by the system. No further steps are necessary.