PLC Project
Jump to navigation
Jump to search
Language Specification
Program's formatting
The program consists of a sequence of commands. Commands are written with free formating. Comments, spaces, tabs and line breaks serve only as delimiters and do not affect the meaning of the program. Commnets are bounded by two slashes and the end of the line. Keywords are reserved. Identifiers and keywords are case sensitive.
Variables
Variable's identifiers are composed from letters and digits and it must start with a letter. Each variable must be declared before it is used. Repeated declaration of a variable with the same name is an error. Variables must have one of the following types: int
, float
, boolean
or String
. After the declaration, the variables have initial values: 0
, 0.0
, ""
respectivelly False
.