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); }
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); }
public void WhenParseByStatementsFromAndSaveResultAs(Token[] tokens, string key) { var parser = new StatementEnumerableParser(Settings); var statements = parser.Parse(tokens).ToArray(); ScenarioContext.Current.Set(statements, key); }