/// <summary> /// Creates a CPL 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 CPL lexer for the given code.</returns> public AntlrLexerBase CreateLexer(string p_strCode, ErrorTracker p_ertErrorTracker) { SkyrimCplLexer lexLexer = new SkyrimCplLexer(new ANTLRStringStream(p_strCode)); lexLexer.SetErrorTracker(p_ertErrorTracker); return(lexLexer); }
/// <summary> /// Creates a CPL 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 CPL lexer for the given code.</returns> public AntlrLexerBase CreateLexer(string p_strCode, ErrorTracker p_ertErrorTracker) { SkyrimCplLexer lexLexer = new SkyrimCplLexer(new ANTLRStringStream(p_strCode)); lexLexer.SetErrorTracker(p_ertErrorTracker); return lexLexer; }