guides:programming:programmers_reference_manual:compiler

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.

CommandDescription
; (semicolon)Delimits a new line (allows multiple commands to appear on the same line).
$INSERT statementInserts 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 ConditionBegins 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 statementBegins a stored procedure declaration (optional). One of two types of stored procedure must be specified: Function, or Subroutine.
Declare statementCauses the compiler to recognize calls to subroutines or user-defined functions.
End statementIf not part of a multi-line statement (such as If … Then), tells the compiler to stop compilation at that point.
Equate or Equ statementEstablishes equivalency between a constant and a value, or between a constant and an expression (example: Equate BEEP$ To Char(7)).
Function statementDirects the compiler to tag the object code of a procedure as being a user-defined function.
LineMarkInserts a linemark character into the compiled code of code compiled without linemarks.
Subroutine statementDirects the compiler to tag the object code of a procedure as being an external subroutine. An external subroutine does not return a value.
  • guides/programming/programmers_reference_manual/compiler.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1