Enumeration Member Loop Expansion Tokens

 

Enumeration member loop expansion tokens are used to insert information about the current enumeration member being processed within the context of an enumeration member loop into the output stream. Enumeration member loop tokens can only be used inside an enumeration member loop.

 

Enumeration Member Loop Token

Description

<ENUM_MEMBER_NAME>

 

Inserts the name of the enumeration member.

 

Alternates:  <enum_member_name>, <Enum_Member_Name>, <Enum_member_name>, <EnumMemberName>, <enumMemberName>

<ENUM_MEMBER_EXPLICIT_VALUE>

 

Inserts the numeric value of the enumeration member that is explicitly specified in the repository.  Note that some enumeration members may not have an explicit value specified. In Synergy, enumeration members that do not have an explicit specified value will default to the value of the previous member incremented by one, except for the first member whose value defaults to zero. If a member does not have an explicitly specified value then inserts nothing.

 

The token is primarily used when defining enumerations in Synergy language.

<ENUM_MEMBER_IMPLICIT_VALUE>

 

Inserts the numeric value of the enumeration member that is either explicitly specified in the repository, or is implicitly derived by following the same rules observed by the Synergy compiler. This token will always cause a value to be inserted, even if the enumeration member being processed does not have an explicitly defined value.

 

This token is primarily used when defining enumerations in languages other than Synergy language.

 

 


Copyright © 2021  Synergex International, Inc.