CFGLibTest.TestParsing.TestParsing10 C# (CSharp) Method

TestParsing10() private method

private TestParsing10 ( ) : void
return void
		public void TestParsing10() {
			var g = new Grammar(new List<Production>{
				CFGParser.Production("<S> → <A> 'b'"),
				CFGParser.Production("<S> → <B>"),
				CFGParser.Production("<A> → <B>"),
				CFGParser.Production("<B> → <A> 'b'"),
				CFGParser.Production("<A> → ε"),
			}, Nonterminal.Of("S"));

			var sentences = new List<Sentence>();
			sentences.Add(Sentence.FromWords("b b"));
			ExecuteTest(g, sentences);
		}