示例#1
0
        public void TokenTryItemMakesManyBacktrack()
        {
            var ab   = Token.EqualTo('a').Then(_ => Token.EqualTo('b'));
            var list = ab.Try().Many();

            AssertParser.SucceedsWithMany(list, "ababa", "bb".ToCharArray());
        }