Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

Compiler Directives

The Internet Basic compiler recognizes several special directives, all intended to make program compilation easier and more convenient. Compiler directives cause an action to occur when the program is compiled, not when the program is executed. These directives, which may appear in any section of the source program, are:

Directive Description
INCLUDE include-filename [,directory] [,start-key] Inserts code from an include file into the program being compiled (a synonym for USE)
USE usefile-name [,directory] [,start-key] Inserts code from a usefile into the program being compiled (a synonym for INCLUDE)
ENDUSE Placed at the end of a usefile
SET symbolic-constant = integer-constant Sets the value of a symbolic constant
SET symbolic-constant$ = "string-constant" Sets the value of a string symbolic constant
UNSET symbolic-constant Clears a symbolic constant
.IF symbolic-constant Start of conditional compliation section
.IFDEF symbolic-constant Start of conditional compliation section (if symbolic constant has been defined)
.IFNDEF symbolic-constant Start of conditional compliation section (if symbolic constant has not been defined)
.ELSE Alternate conditional compliation section
.ENDIF End of conditional compliation section