Variable declarations, Declaration specifiers – Echelon Neuron C User Manual
Page 225
Neuron C Reference Guide
205
Neuron-C-declaration
:
task-declaration
io-object-declaration
;
functional-block-declaration
;
device-property-list-declaration
A data declaration is an ANSI C variable declaration.
data-declaration
:
variable-declaration
variable-list
Variable Declarations
The following is ANSI C variable declaration syntax.
variable-declaration-list
:
variable-declaration-list variable-declaration
;
variable-declaration
;
variable-declaration
:
declaration-specifier-list variable-list
declaration-specifier-list
The variable declaration can declare more than one variable in a comma-
separated list. A network variable can also optionally include a property list
declaration after the variable name (and the variable initializer, if present).
variable-list
:
variable-list
,
extended-variable
extended-variable
extended-variable
:
variable
nv-property-list-declaration
variable
variable
:
declarator
=
variable-initializer
declarator
variable-initializer
:
{
variable-initializer-list
, }
{
variable-initializer-list
}
constant-expr
variable-initializer-list
:
variable-initializer-list
,
variable-initializer
variable-initializer
Declaration Specifiers
The ANSI C declaration specifiers are augmented in Neuron C by adding the
connection information, the message tag specifier, configuration property
specifiers, network variable specifiers, and timer type specifiers.