Structure/union syntax, Configuration property declarations – Echelon Neuron C User Manual

Page 228

Advertising
background image

208

Syntax Summary

enum-const-list

:

enum-const-list

,

enum-const

enum-const


enum-const

:

variable-identifier

=

constant-expr

variable-identifier

Structure/Union Syntax

The following is ANSI C struct/union type syntax.

struct-or-union-specifier

:

aggregate-keyword

identifier

{

struct-decl-list

}

aggregate-keyword

{

struct-decl-list

}

aggregate-keyword

identifier

aggregate-keyword

:

struct

union

struct-decl-list

:

struct-decl-list struct-declaration

struct-declaration

struct-declaration

:

abstract-decl-specifier-list

struct-declarator-list

;

struct-declarator-list

:

struct-declarator-list

,

struct-declarator

struct-declarator

struct-declarator

:

declarator

bitfield

bitfield

:

declarator

:

constant-expr

:

constant-expr

Configuration Property Declarations

Configuration properties are declared with one of the following sequences of

keywords. Configuration properties are specific to Neuron C, and were
introduced in Neuron C Version 2. The first syntax alternative is used to declare

configuration properties implemented as configuration network variables, and
the second alternative is used to declare configuration properties implemented in

configuration files.

configuration-property-specifier

:

cp [

cp-info

] [

range-mod

] (for configuration NVs (CPNVs))

cp_family [

cp-info

] [

range-mod

] (for CPs implemented in files)

Advertising