Antlr4.Automata.LexerATNFactory.LexerATNFactory C# (CSharp) Method

LexerATNFactory() public method

public LexerATNFactory ( LexerGrammar g ) : System.Collections.Generic
g Antlr4.Tool.LexerGrammar
return System.Collections.Generic
        public LexerATNFactory(LexerGrammar g)
            : base(g)
        {
            // use codegen to get correct language templates for lexer commands
            string language = g.GetOptionString("language");
            CodeGenerator gen = new CodeGenerator(g.tool, null, language);
            AbstractTarget target = gen.GetTarget();
            codegenTemplates = target != null ? target.GetTemplates() : null;
        }