コード例 #1
0
        public static void Main1(string [] args)
        {
            var G    = Test1();
            var text = new SymbolReader("cad");
            var pc   = new RecursiveDescentParser(text);
            var res  = pc.RecusiveDescent(G ["S"]);

            Console.WriteLine(res);
        }
コード例 #2
0
        public static void Main(string [] args)
        {
            var EG   = Test2();
            var c    = new FromEbnfToBnf_ByCopying(EG);
            var text = new SymbolReader("cad");
            var pc   = new RecursiveDescentParser(text);
            var res  = pc.RecusiveDescent(c.Bnf ["S"]);

            Console.WriteLine(res);
        }