Remarks |
All lines beginning with ';' or '#' (optionally prefixed with any number of tabs and spaces) are considered remarks and thus ignored; it is possible to add remarks between the two parts of a broken line:
PRINT ABS(DIV(MUL(PIGRECO, 25), \ ; Remarks are allowed between a broken line MUL(CX, ABS(CY)))
By using the character '#' (on operating systems that allow this behaviour), you can run directly the script file by specifying the interpreter, in this way:
#!/usr/bin/proteus [parameters]
The interpreter is run on the file and, since the line begins with '#', it is ignored during execution.
Since a few operating systems discard all characters after the first 32 in the line beginning with #! (and a few parameters might be ignored in this way), Proteus interpret all the parameters every time that a line of this format is detected in the source code. Thus only the essential flags should be specified in the first line; other flags can be added in a following line, in this way:
#!/usr/bin/proteus [most important flags] ; The parameters in the following line are not passed on the command ; line, but interpreted during compilation ;!proteus [other parameters]
This is useful even when the operating system allows for a single parameter on the line #! (even though many flags can be chained in a single parameter).
Start of page | Next topic | Previous topic | Contents | Index |