7. Embedded QUEL for Pascal : Precompiling, Compiling, and Linking an EQUEL Program : Coding Requirements for Writing EQUEL Programs : Comments Embedded in Pascal Output
 
Share this page                  
Comments Embedded in Pascal Output
Each EQUEL statement generates one comment and a few lines of Pascal code. You may find that the preprocessor translates 50 lines of EQUEL into 200 lines of Pascal. This may result in confusion about line numbers when you are debugging the original source code. To facilitate debugging, each group of Pascal statements associated with a particular statement is preceded by a comment corresponding to the original EQUEL source. (Note that only executable EQUEL statements are preceded by a comment.) Each comment is one line long and informs the reader of the file name, line number, and type of statement in the original source file.
One consequence of the generated comment is that you cannot comment out embedded statements by putting the opening comment delimiter on an earlier line. You have to put the opening comment delimiter on the same line, before the ## delimiter, to cause the preprocessor to treat the complete statement as a Pascal comment.