Beispiel #1
0
        public void SetUp()
        {
            sut = new StatementRunner();

              symbols = new SymbolsTable();
              core = A.Fake<WebCoreRepository>();
              context = new Context(symbols, core);
        }
Beispiel #2
0
        public void Run(string script, WebCoreRepository core)
        {
            var context = new Context(symbols, core);

              var tokenizedLines = script
            .Split(new[] {Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)
            .Select(line => tokenizer.Parse(line));

              foreach (var tokens in tokenizedLines)
            executor.Run(tokens.ToArray(), context);
        }
Beispiel #3
0
 public Context(Symbols symbols, WebCoreRepository core)
 {
     Symbols = symbols;
       Core = core;
 }
Beispiel #4
0
 public RuntimeCore()
 {
     webCore = new WebCore();
 }