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

TestParsing03() 개인적인 메소드

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

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