Пример #1
0
        private void ShowLexerOutput()
        {
            LexerState LexerState = new LexerState(tbEditor.Text);

            LexerState.Reset();
            var token = Lexer.GetToken(LexerState);

            while (token.Type != TokenType.EOF)
            {
                tbLexerOutput.AppendText(token.ToString());
                tbLexerOutput.AppendText("\r\n");
                token = Lexer.GetToken(LexerState);
            }
        }
Пример #2
0
 public void Reset()
 {
     State.Reset();
     Scope.Clear();
     Struct = false;
 }