
Chapter 2. Development Environment and Procedures
15
2.3 Writing a Source Program
2.3.1 Writing a Source Program by an Editor
To write a source program, use an editor designed for operating environments where the
BHT-BASIC 3.5 Compiler will execute. The default editor is Windows Notepad.
TIP
To write a source program efficiently, use of a commercially available editor is
recommended. For the operation of such an editor, refer to the instruction
manual for the editor.
2.3.2 Rules for Writing a Source Program
When writing a source program according to the syntax of BHT-BASIC 3.5, observe the
following rules:
• A label name should begin in the 1st column.
ABC
2000
• A statement should begin in the 2nd or the following columns.
PRINT
FOR I=1 TO 100 :NEXT I
• One program line should be basically limited to 512 characters (excluding a CR code)
and should be ended with a CR code (by pressing the carriage return key).
If you use an underline (_) preceding a CR code, however, one program line can be
extended up to 8192 characters. For statements other than the PRINT, PRINT#, and
PRINT USING statements, you may use also a comma (,) preceding a CR code,
instead of an underline.
Comentarios a estos manuales