Exemplo n.º 1
0
        public override void ExitForeach_href_command([NotNull] CrawlLangParser.Foreach_href_commandContext context)
        {
            string             selector           = context.selector().GetText().Trim('\'');
            ForEachHrefCommand forEachHrefCommand = new ForEachHrefCommand(_CurrentBlock, selector,
                                                                           _ExecutionEngine.ForEachHref_Head,
                                                                           _ExecutionEngine.ForEachHref_IterationBegin,
                                                                           _ExecutionEngine.ForEachHref_IterationEnd,
                                                                           _ExecutionEngine.ForEachHref_Tail);

            _BlockIds.Pop();
            _CurrentBlock.Add(forEachHrefCommand);
        }