示例#1
0
 public void WhenParseExpressionFromAndSaveResultAs(Token[] tokens, string key)
 {
     var stream = new TokenStream(tokens);
     var parser = new ExpressionParser(Settings);
     var result = parser.Parse(stream);
     ScenarioContext.Current.Set(result, key);
 }
示例#2
0
 public void WhenParseLiteralTypeStatementFromAndSaveResultAs(Token[] tokens, string key)
 {
     var parser = new LiteralTypeStatementParser(Settings);
     var stream = new TokenStream(tokens);
     var result = parser.Parse(stream);
     ScenarioContext.Current.Set(result, key);
 }
示例#3
0
 public void WhenParseByStatementsFromAndSaveResultAs(Token[] tokens, string key)
 {
     var parser = new StatementEnumerableParser(Settings);
     var statements = parser.Parse(tokens).ToArray();
     ScenarioContext.Current.Set(statements, key);
 }