I have a special scenario I need to solve:
I have a custom pogramming language based on a dynamic lexer with lots of pattern groups and a grammar. So far so good.
Now I need to support different spoken languages in that programming language (e.g. german and english, more variants possible).
Some patterns are identical because they are the same in every language, some can differ, The grammar is identical.
if (a==5) load b;
wenn (a==5) lade b;
I could just copy the entire Language definition and change my regexes in the Dynamic lexer, but hoped there is a more elegant solution, where I could just change the ones that differ and just produce different lexers.
To just change the regexes that they recognize both variants is not feasible as I want to prevent mixing the two language variants.
Hope you got my issue, Have searched the documentation and the Sample Browser but haven't found anything helpful.
Thanks in advance