contents   index   previous   next



The Nombas Preprocessor

 

As mentioned above, the source files included in the distribution are not standard .java files. Instead, they are .jsrc files which must be run through the provided preprocessor before being compiled. The preprocessor outputs the corresponding .java files which can then be compiled normally. In addition to the preprocessor commands, the preprocessor also allows source lines in .jsrc files to be appended using the ‘\’ character. For example, the following code:

 

#if DEBUG == 1 && \

   BLAH != 0

would be turned into a single line by the preprocessor.

 

 

 


The Preprocessor Commands

Using the Preprocessor