Statements – Echelon Neuron C User Manual
Page 238
218
Syntax Summary
property-instantiation
:
[
property-qualifier
]
cpnv-prop-ident
[
property-qualifier
]
cp-family-prop-ident
property-qualifier
:
one
of
global | static
cpnv-prop-ident
:
net-var-identifier
[
constant-expression
]
net-var-identifier
cp-family-prop-ident :
variable-identifier
Statements
The following is ANSI C statement syntax. Compound statements begin and end
with left and right braces, respectively. Compound statements contain a variable
declaration list, a statement list, or both. The variable declaration list, if present,
must precede the statement list.
compound-stmt
:
{ [
variable-declaration-list
] [
statement-list
] }
statement-list
:
statement-list
statement
statement
In the C language, there is a grammatical distinction between a complete
statement and an incomplete statement. This is basically done for one reason,
and that is to permit the grammar to unambiguously decide which if statement
goes with which else statement. An if statement without an else is called an
incomplete statement.
statement
:
complete-stmt
incomplete-stmt
complete-stmt
:
compound-stmt
label
:
complete-stmt
break ;
continue
;
do
statement
while-clause
;
for-head
complete-stmt
goto
identifier
;
if-else-head
complete-stmt
__lock
compound-statement
switch-head
complete-stmt
return ;
return
expression
;
while-clause
complete-stmt
expression
;
;