예제 #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;
 }