Consistent Datatype for values [message #1779336] |
Fri, 05 January 2018 09:47  |
Eclipse User |
|
|
|
Hello,
I would like to check for an "in" operator, that always consistent data types are included in the values:
e.g.
only Strings
only numbers
The xtext grammar:
In:
'in' '(' attribute=FIELD_VALUE ',' '(' values+=Literal (',' values+=Literal)* ')' ')';
Can I do that directly in the grammar?
|
|
|
|
|
|
|
|
|
|
Re: Consistent Datatype for values [message #1779368 is a reply to message #1779366] |
Fri, 05 January 2018 12:52  |
Eclipse User |
|
|
|
Christian Dietrich wrote on Fri, 05 January 2018 17:50that's ok, depends on other places you use similar IDs.
Okay, then i will try to create a validation
EDIT: okay now i have the same issue like in my other thread all values are strings ;). So i cannot check the data type. First i have to fix this, before i can create a validation
[Updated on: Fri, 05 January 2018 13:08] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.06854 seconds