Scorpio.Compiler.ScriptLexer.ScriptLexer C# (CSharp) Method

ScriptLexer() public method

public ScriptLexer ( String buffer, String strBreviary ) : System
buffer String
strBreviary String
return System
		public ScriptLexer(String buffer, String strBreviary)
        {
            m_listSourceLines = new List<string>();
            m_listTokens = new List<Token>();
            string[] strLines = buffer.Split('\n');
			if (Util.IsNullOrEmpty (strBreviary)) {
				m_strBreviary = strLines.Length > 0 ? strLines [0] : "";
				if (m_strBreviary.Length > BREVIARY_CHAR)
					m_strBreviary = m_strBreviary.Substring (0, BREVIARY_CHAR);
			} else {
				m_strBreviary = strBreviary;
			}
            foreach (String strLine in strLines)
                m_listSourceLines.Add(strLine + '\n');
            m_iSourceLine = 0;
            m_iSourceChar = 0;
            lexState = LexState.None;
        }
        /// <summary> 获得整段字符串的摘要 </summary>