Example #1
0
        static void Main(string[] args)
        {
            string phrase = "1 + 3 * 5";

            Lexer lex    = new Lexer(phrase);
            var   tokens = lex.StartLexicalAnalysis();

            ConsoleHelper.DisplayTokenListOnConsole(tokens);

            Parser pars         = new Parser(lex);
            var    parserResult = pars.Analyze();

            Console.ReadLine();
        }