/// <summary> /// Creates a Mod Script lexer for the given code, using the given error tracker. /// </summary> /// <param name="p_strCode">The code be lexed.</param> /// <param name="p_ertErrorTracker">The error tracker to use to log /// lexing errors.</param> /// <returns>A Mod Script lexer for the given code.</returns> public AntlrLexerBase CreateLexer(string p_strCode, ErrorTracker p_ertErrorTracker) { ModScriptLexer lexLexer = new ModScriptLexer(new ANTLRStringStream(p_strCode)); lexLexer.ErrorTracker = p_ertErrorTracker; return(lexLexer); }
/// <summary> /// Creates a Mod Script lexer for the given code, using the given error tracker. /// </summary> /// <param name="p_strCode">The code be lexed.</param> /// <param name="p_ertErrorTracker">The error tracker to use to log /// lexing errors.</param> /// <returns>A Mod Script lexer for the given code.</returns> public AntlrLexerBase CreateLexer(string p_strCode, ErrorTracker p_ertErrorTracker) { ModScriptLexer lexLexer = new ModScriptLexer(new ANTLRStringStream(p_strCode)); lexLexer.ErrorTracker = p_ertErrorTracker; return lexLexer; }