Hi, I'm currently using Xtext to develop a plugin for my custom data format very much like JSON. I would like to thank the Xtext team itemis for developing such a robust framework, it has indeed saved me lots of development time in developing my DSL!
However, I'm at a block. I want to allow non-printable ASCII chars '\u0000' to '\u0020' and '\u007F'.
I searched for ways to allow these characters but there is currently a limitation as Xtext uses XML markup language for grammar access fragments. Setting:
fragment = grammarAccess.GrammarAccessFragment {
xmlVersion = "1.1"
}
doesn't solve this issue fully as XML 1.0 and 1.1 both restricts the use of some non-printable ASCII chars (e.g. '\u0000').
I've tried to see if I could hook my custom lexer syntax error messages to display as valid instead, but it looks like instances of IParserErrorContext and IValueConverterErrorContext are the only SyntaxErrorMessage that I can obtain with the method
SyntaxErrorMessage getSyntaxErrorMessage (...)
Is there any workaround to include non-printable ASCII chars in my terminal rules?
[Updated on: Thu, 28 June 2012 20:02] by Moderator