CFGLibTest.TestParsing.TestParsing08 C# (CSharp) Method

TestParsing08() private method

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

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