in my case I use 3 main grammars (Agent.g4, PlanBundle.g4, Type.g4), which are based on the imported grammar files AgentSpeak.g4, ComplexType.g4 and
Terminal.g4.
So imho I don't import the Terminal.g4 lexer grammar, into my ComplexType.g4 grammar, so I have to change this line only:
to "options { tokenVocab=Terminal; }"
If I do this I get on the build the errors / warnings:
src/main/antlr4/imports/ComplexType.g4 [28:0]: options ignored in imported grammar ComplexType
[WARNING] warning(125): org/lightjason/agentspeak/grammar/Type.g4:60:6: implicit definition of token LEFTANGULARBRACKET in parser
[WARNING] org/lightjason/agentspeak/grammar/Type.g4 [60:6]: implicit definition of token LEFTANGULARBRACKET in parser
The "implicit definition" warning is called for each terminal element. How can I do this correctly?
Thanks
Phil