示例#1
0
文件: Parser.cs 项目: fipn/GOLDEngine
 public bool Open(TextReader Reader)
 {
     Restart();
     m_Lexer          = new Lexer(m_loaded, Reader, m_charToShort);
     m_LALRStack      = new LALRStack(m_loaded, m_TrimReductions);
     m_GroupTerminals = new GroupTerminals(m_loaded, m_Lexer);
     return(true);
 }
示例#2
0
文件: Parser.cs 项目: fipn/GOLDEngine
        public void Restart()
        {
            //=== Lexer
            m_CurrentPosition = new Position();

            m_ExpectedSymbols = null;
            m_InputTokens.Clear();
            m_LALRStack = null;
            m_Lexer     = null;

            //==== V4
            m_GroupTerminals = null;
        }