CFGLibTest.TestParsing.TestParsing18 C# (CSharp) Method

TestParsing18() private method

private TestParsing18 ( ) : void
return void
		public void TestParsing18() {
			var g = new Grammar(new List<Production>{
				CFGParser.Production("<X_9> → 'x3' <X_4> <X_9> [69.71867415901211]"),
				CFGParser.Production("<X_6> → 'x4' [43.169519673180545]"),
				CFGParser.Production("<X_0> → 'x0' 'x3' <X_6> <X_9> <X_9> [95.5660355475573]"),
				CFGParser.Production("<X_5> → <X_9> 'x1' 'x0' 'x1' 'x3' <X_2> [35.638882444537657]"),
				CFGParser.Production("<X_1> → 'x4' 'x3' 'x1' 'x1' <X_9> <X_8> [60.963767072169006]"),
				CFGParser.Production("<X_9> → <X_6> [96.869668710916145]"),
				CFGParser.Production("<X_8> → 'x1' <X_0> 'x0' <X_2> <X_2> [10.412202848779131]"),
				CFGParser.Production("<X_4> → ε [89.394112460498746]"),
				CFGParser.Production("<X_4> → <X_8> 'x2' <X_5> 'x1' [41.46934854261081]"),
				CFGParser.Production("<X_2> → ε [28.04076097674703]"),
				CFGParser.Production("<X_8> → ε [55.798571558109757]"),
				CFGParser.Production("<X_0> → 'x2' 'x2' 'x3' <X_6> [48.407048357374521]"),
				CFGParser.Production("<X_0> → <X_1> 'x3' 'x2' [82.3935272774629]"),
				CFGParser.Production("<X_1> → <X_8> <X_1> <X_2> [68.051246746932733]")
			}, Nonterminal.Of("X_0"));

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

			ExecuteTest(g, sentences);
		}