Compiler
Compiler directives instruct the compiler to perform certain tasks while a procedure is being compiled into object code. Compiler commands are not used during the execution of the procedure.
Command | Description |
---|---|
; (semicolon) | Delimits a new line (allows multiple commands to appear on the same line). |
$INSERT statement | Inserts source code from another procedure into the current procedure at this point. The default location for the storage of BASIC+ source code is the SYSPROCS table. |
*, !, /*...*/ | Designates that the following string is a comment, and not an executable part of the code. |
Begin Condition \ Pre: \ Post: \ End Condition | Begins the contract block. This block is ended with an End Condition statement, and before that, you must have at least Pre: and Post: statements. |
Compile statement | Begins a stored procedure declaration (optional). One of two types of stored procedure must be specified: Function, or Subroutine. |
Declare statement | Causes the compiler to recognize calls to subroutines or user-defined functions. |
End statement | If not part of a multi-line statement (such as If … Then), tells the compiler to stop compilation at that point. |
Equate or Equ statement | Establishes equivalency between a constant and a value, or between a constant and an expression (example: Equate BEEP$ To Char(7)). |
Function statement | Directs the compiler to tag the object code of a procedure as being a user-defined function. |
LineMark | Inserts a linemark character into the compiled code of code compiled without linemarks. |
Subroutine statement | Directs the compiler to tag the object code of a procedure as being an external subroutine. An external subroutine does not return a value. |