I have a mixed grammar which uses the NOT operator at a Lexer rule to be able to range over UTF8 including special chars:
OTHERCHAR : ~('<'|'{');
This generates... though I see some code like this in a C# target with the following codegen opts:
options
{
language=CSharp3;
output=ast;
}
The C# 3 code:
private class DFA3 : DFA
{
private const string DFA3_eotS =
"\2\uffff\1\15\1\17\1\uffff\1\23\1\26\7\uffff\1\20\5\uffff\1\20\5\uffff"+
[...]
};
In C# these sequences cannot be processed, because they're not Unicode escape sequences.
Do I have to change the codegen template now or is there an option which I'm missing?
Best,
Marius