CFGLibTest.TestParsing.TestParsing17 C# (CSharp) Method

TestParsing17() private method

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

			var sentences = new List<Sentence>();
			sentences.Add(Sentence.FromWords("x"));

			ExecuteTest(g, sentences);
		}