I assume that now you have figured out how easy it is to circumvent the solution, which is to turn off the corresponding warning (and saves you from messing with the templates).
Just add the following to your grammar file:
@parser::header {#pragma warning disable 3021}
@lexer::header {#pragma warning disable 3021}
NTN Gabriel
source
share