Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCheck nature of XExpression
https://www.eclipse.org/forums/index.php/mv/msg/442391/992407/#msg_992407
I have to check if a generic XExpression is a boolean condition.
I'll try to check type of expression, but it is insufficient: in fact something like this have boolean type but isn't a boolean condition
if (true) true
Very thank you!]]>Tommaso De Sica2012-12-21T15:06:45-00:00Re: Check nature of XExpression
https://www.eclipse.org/forums/index.php/mv/msg/442391/992418/#msg_992418
yourself
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de]]>Christian Dietrich2012-12-21T15:36:50-00:00Re: Check nature of XExpression
https://www.eclipse.org/forums/index.php/mv/msg/442391/993875/#msg_993875
> Goodevening guys.
>
> I have to check if a generic XExpression is a boolean condition.
> I'll try to check type of expression, but it is insufficient: in fact
> something like this have boolean type but isn't a boolean condition
>
> if (true) true
>
> Very thank you!
Hi Tommaso
if it has boolean type it is a boolean condition actually :)
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de]]>Christian Dietrich2012-12-27T11:33:43-00:00Re: Check nature of XExpression
https://www.eclipse.org/forums/index.php/mv/msg/442391/994506/#msg_994506
Christian Dietrich wrote on Thu, 27 December 2012 12:33
Xbase has not char literals but string literals only. Have a look at
the xbasetypeprovider for further details on the type system
Yes, I know it.
But my curiosity was about the reason of it.]]>Tommaso De Sica2012-12-27T14:12:11-00:00Re: Check nature of XExpression
https://www.eclipse.org/forums/index.php/mv/msg/442391/996481/#msg_996481
> Christian Dietrich wrote on Thu, 27 December 2012 12:33
>> Xbase has not char literals but string literals only. Have a look at
>> the xbasetypeprovider for further details on the type system
>
>
> Yes, I know it.
> But my curiosity was about the reason of it.
This is a current limitation that we want to get rid of, e.g. by means
of target typing. Both expression will be valid in future versions of Xbase:
val char c = 'c'
val String s = 's'
Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com]]>Sebastian Zarnekow2013-01-02T07:23:02-00:00Re: Check nature of XExpression
https://www.eclipse.org/forums/index.php/mv/msg/442391/996501/#msg_996501
thank you!]]>Tommaso De Sica2013-01-02T08:30:02-00:00