예제 #1
0
        private string Run(ParseList parseList, IPropertyBag bag)
        {
            IInterpretContext ctx = new InterpretContext();

            ctx.Bag       = bag;
            ctx.ParseList = parseList;

            int listLength = ctx.ParseList.Count;

            while (ctx.ListPosition < listLength)
            {
                // go through the parseList and act on each item we find
                MarkupBase markupItem = parseList[ctx.ListPosition];
                markupItem.Interpret(ctx);
            }

            return(ctx.Builder.ToString());
        }
예제 #2
0
        private string Run(ParseList parseList, IPropertyBag bag)
        {
            IInterpretContext ctx = new InterpretContext();
            ctx.Bag = bag;
            ctx.ParseList = parseList;

            int listLength = ctx.ParseList.Count;
            while (ctx.ListPosition < listLength) {

                // go through the parseList and act on each item we find
                MarkupBase markupItem = parseList[ctx.ListPosition];
                markupItem.Interpret(ctx);
            }

            return ctx.Builder.ToString();
        }