CFGLibTest.TestParsing.TestParsing09 C# (CSharp) 메소드

TestParsing09() 개인적인 메소드

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

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