make String type attributes to be unique [message #896500] |
Wed, 18 July 2012 10:37  |
Eclipse User |
|
|
|
hi,
i have donne my dsl grammar and i have used the Estring type as follow:
CHANNEL returns spi::CHANNEL:
'CHANNEL'
'{'
'Name' Name=EString
'ChannelType' ChannelType=EString
('DataWidth' DataWidth=EBigInteger)?
('DefaultData' DefaultData=EBigInteger)?
('EbMaxLength' EbMaxLength=EBigInteger)?
('IbNBuffers' IbNBuffers=EBigInteger)?
'TransferStart' TransferStart=EString
'channelreflink' '{' channelreflink+=CHANNEL_REF ( "," channelreflink+=CHANNEL_REF)* '}'
'}';
JOB_REF returns spi::JOB_REF:
'JOB_REF'
'{'
'Name' Name=EString
'}';
CHANNEL_REF returns spi::CHANNEL_REF:
'CHANNEL_REF'
'{'
'Name' Name=EString
'}';
RSTMON returns swsec::RSTMON:
{swsec::RSTMON}
'RSTMON'
'{'
('WarmResetCounter' WarmResetCounter=EBigInteger)?
('DelayBeforeWRCounterReset' DelayBeforeWRCounterReset=EBigInteger)?
'}';
EString returns ecore::EString:
ID;
and i want every name enter to be unique , i have used the Id since is pecialized to make name uniq , but that is not working.
any ideas on what can be the problem?
|
|
|
Re: make String type attributes to be unique [message #896515 is a reply to message #896500] |
Wed, 18 July 2012 11:44  |
Eclipse User |
|
|
|
Maby your problem is that you use 'Name' instead of 'name' as the name
of the name-feature?
- henrik
On 2012-18-07 16:37, frank fotso wrote:
> hi,
>
> i have donne my dsl grammar and i have used the Estring type as follow:
>
>
> CHANNEL returns spi::CHANNEL:
> 'CHANNEL'
> '{'
> 'Name' Name=EString
> 'ChannelType' ChannelType=EString
> ('DataWidth' DataWidth=EBigInteger)?
> ('DefaultData' DefaultData=EBigInteger)?
> ('EbMaxLength' EbMaxLength=EBigInteger)?
> ('IbNBuffers' IbNBuffers=EBigInteger)?
> 'TransferStart' TransferStart=EString
> 'channelreflink' '{' channelreflink+=CHANNEL_REF ( ","
> channelreflink+=CHANNEL_REF)* '}' '}';
>
> JOB_REF returns spi::JOB_REF:
> 'JOB_REF'
> '{'
> 'Name' Name=EString
> '}';
>
> CHANNEL_REF returns spi::CHANNEL_REF:
> 'CHANNEL_REF'
> '{'
> 'Name' Name=EString
> '}';
>
> RSTMON returns swsec::RSTMON:
> {swsec::RSTMON}
> 'RSTMON'
> '{'
> ('WarmResetCounter' WarmResetCounter=EBigInteger)?
> ('DelayBeforeWRCounterReset'
> DelayBeforeWRCounterReset=EBigInteger)?
> '}';
>
>
> EString returns ecore::EString:
> ID;
>
> and i want every name enter to be unique , i have used the Id since is
> pecialized to make name uniq , but that is not working.
>
> any ideas on what can be the problem?
|
|
|
Powered by
FUDForum. Page generated in 0.28036 seconds