Esempio n. 1
0
        public override void ExitOn_root_command([NotNull] CrawlLangParser.On_root_commandContext context)
        {
            List <ICommand> commands = _CurrentBlock;

            _BlockIds.Pop();

            ExecutionPlan = new ExecutionPlan(commands, _RootURL);
        }
        public override void EnterOn_root_command([NotNull] CrawlLangParser.On_root_commandContext context)
        {
            _BlockIds.Push(Guid.NewGuid());
            _CommandBlocks.Add(_CurrentBlockId, new List <ICommand>());
            _RootURL = context.www_url().GetText().Trim('\'');

            OnRootCommand onRootCommand = new OnRootCommand(_RootURL, _ExecutionEngine.OnRoot);

            _CurrentBlock.Add(onRootCommand);
        }
 public abstract override void ExitOn_root_command([NotNull] CrawlLangParser.On_root_commandContext context);