Esempio n. 1
0
        static void Main(string[] args)
        {
            string s = "S-L=R|R L-*R|x R-L";
            //E-TE' E'-+TE'|0 T-FT' T'-*FT'|0 F-(E)|a
            //L-E E-E+T|E=T|T T-T*F|T/F|F F-(E)|x
            //L-E E-TE' E'-+TE'|=TE'|0 T-FT' T'-*FT'|/FT'|0 F-(E)|x
            //S-L=R|R L-*R|x R-L

            Parser parser = new Parser {
                Src = s, Input = "aaa"
            };

            parser.Excute();
            //parser.Print();
        }