private void LexicalAnalyzerItem_Click(object sender, EventArgs e) { LexicalAnalyzer lexicalAnalyzer = new LexicalAnalyzer(this.CodeTextBox.Text); lexicalAnalyzer.Analyses(out tokenList, out errorList); int record_mouse = CodeTextBox.SelectionStart; ColorWord(); CodeTextBox.Select(record_mouse, record_mouse); PrintResult(tokenList, errorList); }