47
UbiQ Scenario Manager User Manual
Chapter 4
B
asic of
Smart-C
S
cript
Language
Symbol
Type of Operation
Associativity
[ ] ( ) .
Expression
Left to right
+ ®C
Unary
Right to left
* / %
Multiplicative
Left to right
+ ®C
Additive
Left to right
< > <= >= == !=
Relational
Left to right
& | && || << >>
Logical and Bitwise
Left to right
An expression can contain several operators with equal precedence. When several
such operators appear at the same level in an expression, evaluation proceeds
according to the associativity of the operator, either from right to left or from left to
right. The direction of evaluation does not affect the results of expressions that
include more than one multiplication (*), addition (+), or binary-bitwise (& | ) operator
at the same level.
Statements
The statements of a C program control the flow of program execution. In C, as in
other programming languages, several kinds of statements are available to perform
loops, to select other statements to be executed, and to transfer control. Following a
brief overview of statement syntax, this section describes the C statements in alpha-
betical order:
* block statement
* break statement
* continue statement
* expression statement
* for statement
* if statement
* return statement
* while statement
block statement
Summary of Contents for UbiQ
Page 1: ...User Manual UbiQ Scenario Manager User Manual V1 03...
Page 4: ...UbiQ Scenario Manager User Manual iv...
Page 7: ...Chapter 1 1 Introduction...
Page 13: ...Chapter 2 2 Getting Started...
Page 37: ...Chapter 3 3 Tutorials...
Page 47: ...Chapter 4 4 Basic of Smart C Script Language...
Page 62: ...UbiQ Scenario Manager User Manual 56...