HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
3- 2
* Gives the syntax of the general statement and briefly explains each
statement element.
* Explains the different types of statements.
* Provides further information on the statement elements keyword and
identifier.
* Lists the places in a program where spaces are required or are
illegal.
* Compares remarks and comments.
* Explains how statements form a program.
Statement Syntax
Every HP Business BASIC/XL statement has the following syntax, although
not every statement can have all of the optional elements shown. See
"Statement Types" in this chapter for restrictions on the general syn-
tax.
Syntax
{
line_num
[
line_label
:]} [
Statement_body
] [
comment
]
Parameters
line_num
Integer in the range[1, 999999]. Leading zeros are not
significant. Each program line in a program must have a
unique line number. Program lines are executed in line
number order unless control statements specify otherwise.
line_label
Identifier. For a description of an identifier, see
"Identifiers". If a program line has a label, it can be
referenced by either its label or line number.
statement_body
The part of the statement that is specified by its
syntax specification. Syntax specifications for
individual statements appear in chapter 4. The
statement-body
is composed of the following statement
elements:
Table 3-2. Statement Elements
---------------------------------------------------------------------------------------------
| | |
| Statement Element | Explained in |
| | |
---------------------------------------------------------------------------------------------
| | |
| Keyword | "Keywords". |
| | |
---------------------------------------------------------------------------------------------
| | |
| Variable name | "Variable Names". |
| | |
---------------------------------------------------------------------------------------------
| | |
| Spaces | "Spaces". |
| | |
---------------------------------------------------------------------------------------------
| | |
| Literal | "Numeric Literals" and "String Literals". |
| | |
---------------------------------------------------------------------------------------------
| | |
| Expression | "Operators" or "Subunits". |
| | |
---------------------------------------------------------------------------------------------