Syntax of a Proteus program |
A Proteus program consists of several text lines, which can be classified as:
Each line can continue on the following line
if it ends with '\'.
The program is run one time for each line in the input file (the ISAPI and Service
versions of Proteus do not accept input files, so the scripts run with these interpreters
are always executed once); Proteus accepts every type of
text file: Dos, Unix and Macintosh. The line terminator used to create new files
depends on the value of the predefined variable EOL:
in Dos/Windows versions EOL is initially set to "\r\n"; in the
Unix version, it is set to "\n".
Obviously, the user can bypass this predefined behaviour avoiding the functions which use EOL
(such as PRINTLN, FWRITELN, ..) and substituting them
with their unterminated counterparts (PRINT,
FWRITE); in this way, he can
append the line terminator that he desires.
There are different line terminators for writing to standard output and to standard error.
The methods can include functions and expressions (constants and variables).
Start of page | Next topic | Previous topic | Contents | Index |