I want to put my terminals into a separate file, because I'll use an external lexer in the production version. I tried following the answer to using custom terminals definitions. So I have a mypackage/Tokens.xtext
file and a mypackage/MyDsl.xtext
file containing
grammar mypackage.MyDsl with mypackage.Tokens
The generation works fine, but it creates a MyDslStandaloneSetupGenerated
in src-gen
which doesn't compile, because it calls the non-existent mypackage.TokensStandaloneSetup.doSetup()
. It also generates src-gen/mypackage/services/MyDslGrammarAccess
which refers to an also non-existent TokensGrammarAccess
class. So my question is basically: when I have another grammar file, what else should I do to make it usable?