|
|
|
|
|
|
|
|
Re: Xtext grammar [message #1736332 is a reply to message #1736326] |
Tue, 28 June 2016 13:08 |
|
i dont get your point
Xtext will call the STRINGValueConverter that is injected into DefaultValueConverterService thus you can subclass STRINGValueConverter
public class MySTRINGValueConverter extends STRINGValueConverter {
@Override
protected String convertFromString(String literal, INode node) throws ValueConverterWithValueException {
// FIX impl here e.g. by copy paste adapt super impl
return super.convertFromString(literal, node);
}
@Override
protected String toEscapedString(String value) {
// FIX impl here e.g. by copy paste adapt super impl
return super.toEscapedString(value);
}
}
and simply add a binding as you do it for 10000 stuff as well
def Class<? extends STRINGValueConverter> bindSTRINGValueConverter() {
return MySTRINGValueConverter;
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Powered by
FUDForum. Page generated in 0.04877 seconds