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); }
public void Restart() { //=== Lexer m_CurrentPosition = new Position(); m_ExpectedSymbols = null; m_InputTokens.Clear(); m_LALRStack = null; m_Lexer = null; //==== V4 m_GroupTerminals = null; }