Example #1
0
        //======================词法分析=====================
        private void ShowLexer()
        {
            sourcecode = source.Text;
            lexer      = new Lexer(sourcecode);
            List <Token> lw = new List <Token>();

            lexer.LexicalAnalyse();
            lexer.ChangeErrorList();// 把错误的token调价到errorList
            lexicalErrorList = lexer.errorlist;
        }