Changeset 15834 for branches/2886_SymRegGrammarEnumeration/Test
- Timestamp:
- 03/08/18 11:42:18 (6 years ago)
- Location:
- branches/2886_SymRegGrammarEnumeration/Test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2886_SymRegGrammarEnumeration/Test/GrammarEnumerationTest.cs
r15832 r15834 62 62 alg.Start(); 63 63 64 TerminalSymbol varSymbol = alg.Grammar.Var .VariableTerminalSymbols.First();64 TerminalSymbol varSymbol = alg.Grammar.VarTerminals.First(); 65 65 TerminalSymbol mulSymbol = alg.Grammar.Multiplication; 66 66 TerminalSymbol addSymbol = alg.Grammar.Addition; … … 117 117 alg.Start(); 118 118 119 TerminalSymbol varSymbol = alg.Grammar.Var .VariableTerminalSymbols.First();119 TerminalSymbol varSymbol = alg.Grammar.VarTerminals.First(); 120 120 TerminalSymbol mulSymbol = alg.Grammar.Multiplication; 121 121 TerminalSymbol addSymbol = alg.Grammar.Addition; … … 145 145 alg.Start(); 146 146 147 TerminalSymbol xSymbol = alg.Grammar.Var .VariableTerminalSymbols.First(v => v.StringRepresentation == "X");148 TerminalSymbol ySymbol = alg.Grammar.Var .VariableTerminalSymbols.First(v => v.StringRepresentation == "Y");147 TerminalSymbol xSymbol = alg.Grammar.VarTerminals.First(v => v.StringRepresentation == "X"); 148 TerminalSymbol ySymbol = alg.Grammar.VarTerminals.First(v => v.StringRepresentation == "Y"); 149 149 TerminalSymbol mulSymbol = alg.Grammar.Multiplication; 150 150 TerminalSymbol addSymbol = alg.Grammar.Addition; -
branches/2886_SymRegGrammarEnumeration/Test/TreeHashingTest.cs
r15832 r15834 17 17 grammar = new Grammar(new[] { "a", "b", "c" }); 18 18 19 varA = grammar.Var .VariableTerminalSymbols.First(s => s.StringRepresentation == "a");20 varB = grammar.Var .VariableTerminalSymbols.First(s => s.StringRepresentation == "b");21 varC = grammar.Var .VariableTerminalSymbols.First(s => s.StringRepresentation == "c");19 varA = grammar.VarTerminals.First(s => s.StringRepresentation == "a"); 20 varB = grammar.VarTerminals.First(s => s.StringRepresentation == "b"); 21 varC = grammar.VarTerminals.First(s => s.StringRepresentation == "c"); 22 22 } 23 23
Note: See TracChangeset
for help on using the changeset viewer.