Chapter 13 Device Logic (Pawn)
13.4 Syntax
13.4.1 General syntax
13.4.1.1 Format
Identifiers, numbers and characters are separated by spaces, tabs, line breaks and "form feed". A series of
one or more of these separators is recognised as an empty space.
13.4.1.2 Optional semicolons
Semicolons (used to finish a statement) are optional if they are at the end of a line. Semicolons are required to
separate several statements in a line. An expression can be split across several lines, though the postfix
operators must be on the same line as the operand.
13.4.1.3 Comments
Text between the /* and */ symbols (both symbols can be on the same or different lines) and text following //
(to the end of the line) are comments. Comments must not be nested. The compiler considers comments to
be blank space. A documentation comment is a comment that starts with "/** " (two stars and space after the
second star) and ends with "*/". A comment that starts with "/// " (three forward slashes and a space after the
third slash) is also a documentation comment. The parser can support the documentation comment in
different ways, for example, by using it to generate online help.
13.4.1.4 Identifier
Names of variables, functions and constants. Identifier comprises the characters a...z, A...Z, 0...9, _ or @.
The first character must not be a number. The characters @ and _ on their own are not valid identifiers, e.g.
"_Up" is a valid identifier but "_" is not. Pawn distinguishes between upper and lower case. The parser cuts
identifiers off after a certain length. By default, only the first 16 characters are referenced for distinguishing
purposes.
13.4.1.5 Reserved keywords
Statements
Operator
Directives
Others
assert
break
case
continue
default
do
else
exit
for
goto
if
return
sleep
state
switch
while
defined
sizeof
state
tagof
defined
sizeof
state
tagof
defined
sizeof
state
tagof
Rev. 05
213
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......