Beispiel #1
0
        public void RepeatResets()
        {
            var grammar = TestGrammar.Create();
            var parser  = new PegParser <TestData>(grammar, grammar.Root());
            var input   = "AAABBBBB";
            var result  = parser.Parse(input);

            Assert.AreEqual(input, result.Items);
        }
Beispiel #2
0
        public void CaptureInitializedProperly()
        {
            var grammar = TestGrammar.Create();
            var parser  = new PegParser <TestData>(grammar, grammar.Root());
            var input   = "AAABBBBB";
            var result  = parser.Parse(input);

            Assert.AreEqual(input, result.Items);
        }