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); } }
public void Reset() { State.Reset(); Scope.Clear(); Struct = false; }