|
GPP Conventions
GPP is not case-sensitive, meaning every keyword or variable name may use uppercase or lowercase letter (or any combination of them). For instance, a variable named OLDX may also be referred to as oldx or oldX.
String Boolean operations are case sensitive. You may use String Functions (namely, STR_LOWER, STR_UPPER) to overcome the case-sensitive nature.
Spaces and line-breaks are ignored. Several statements may be placed in a single line, or a single statement may span several lines.
With GPP2, there are two ways to write comments inside the GPP program:
-
A line starting with the * character is ignored (the traditional GPP way)
-
Any text following the // characters to the end of the line is ignored (C++ way).
Example
* This whole line is a comment, from start to end
X = 12; // an assignment statement, followed by a comment
All calculations in GPP are done using double precision. In case there is a need to make the calculation in the output format, the numbers should be first converted (see FORMATTED_NUM function). See later, a detailed discussion on output formats and how it affects calculations and Boolean operations.
|