Understanding how the Compiler Works

Navigation:  Macros > Testing Macros > Compiling Macros >

Understanding how the Compiler Works

Previous pageReturn to chapter overviewNext page

Understanding how the compiler works is not only informative, but it can help you save time when trying to correct code that generated compiler messages.


The compiler reads each line sequentially (word by word). As soon as it finds a syntax error it generates a message and moves on to the next line. This explains why sometimes after you fix an error on one line, you get an error on the same line that wasn't there before.


The compiler will continue to check all the lines of a Macro, even after it has encountered errors. This is useful for experienced users who can sort out which messages are caused by previous messages (garbage in, garbage out), and which messages are bona fide messages that they may as well take care of now before re-compiling.


Until you have enough confidence, based on the above, the suggested way of treating compiler messages is to start at the top, address the first message, recompile immediately and start again.

Topic 108245 updated on 07-Mar-2002.
Topic URL: https://www.qppstudio.net/webhelp/index.html?understandinghowthecompilerwor.htm