Instructions
193 C-Control Pro IDE
© 2013 Conrad Electronic
4.3.2 Instructions
Instruction
An instruction consists of several reserved command words, identifiers and operators and is at the
end terminated by the end of the line. In order to separate various elements of an instruction there
are spaces in between the instruction elements which are called "Whitespaces". By “spaces“ space
characters, tabulators and line feeds ("C/R and LF") are meant. It is of no consequence whether a
space is built by one or several "Whitespaces".
Simple Instruction:
a= 5
An instruction does not necessarily have to completely stand in one line. By use of the "_" char-
acter (low dash) it is possible to extend the instruction into the next line.
If a=5 _ ' instruction across two lines
a=a+10
It is also possible to place more than one instruction into the same line. The ":" character (colon)
will then separate the individual instructions. For reason of better readability however this option
should rather seldom be used.
a=1 : b=2 : c=3
Comments
There are two types of commentaries, which are the single line and the multi line commentaries. The
text within commentaries is ignored by the Compiler.
Single line commentaries start with a single quotation mark and end up at the line’s end.
Multi line commentaries start with "/*" and end up with "*/".
/* a
multi line
commentary */
' a single line commentary
Identifier
Identifiers are the names of Functions or Variables.
Valid characters are letters (A-Z,a-z), numbers (0-9) and the low dash ('_')
An identifier always starts with a letter
Upper and lower case writings are differentiated
Reserved Words are not allowed as identifiers
The length of an identifier is unlimited