Example #1
0
        public void TestReversed()
        {
            CFG reversed = CFGBuilder.Start("a")
                           .Derive("a").To("c", "b")
                           .Derive("a").To("f", "e", "d")
                           .Derive("b").To("a")
                           .Derive("c").ToEpsilon()
                           .Build();

            Assert.AreEqual(reversed, grammar1.Reversed());
        }