SIMPOL Documentation

Line Continuation Character

One common problem that occurs in languages like BASIC and SIMPOL that consider the end of line to also be the end of statement, is that it results in very long lines in the source programs. One method of combatting this problem is by use of a line continuation character. A line continuation character tells the parser or interpreter to continue reading the statement on the next line without ending the statement. In SIMPOL this character is the backslash (\) character. The line continuation character even applies within a string literal, as long as the backslash is the last character on the line other than white space before the end of line is reached. The only exception to this rule is in the case of the double slash comment, which means the entire line following is a comment.