public virtual SymParserWorker.TTokenConsumptionType OfferToken(SymToken aToken)
        {
            SymParserWorker.TTokenConsumptionType consumptionType = TTokenConsumptionType.ETokenNotConsumed;
            //
            int count = iChildren.Count;

            for (int i = 0; i < count; i++)
            {
                SymParserWorker worker = this[i];
                consumptionType = worker.OfferToken(aToken);
                //
                if (consumptionType == SymParserWorker.TTokenConsumptionType.ETokenConsumed)
                {
                    break;
                }
            }
            //
            return(consumptionType);
        }
 public override void RemoveChild(SymParserWorker aWorker)
 {
     base.RemoveChild(aWorker);
     RemoveSelf();
 }
 public virtual void RemoveChild(SymParserWorker aWorker)
 {
     iChildren.Remove(aWorker);
 }
 public virtual void AddChild(SymParserWorker aWorker)
 {
     iChildren.Add(aWorker);
 }
Beispiel #5
0
 public SymParserWorkerContext(SymParserDocumentContext aDocumentContext, SymParserWorker aParent, SymToken aCurrentToken)
     : base(aDocumentContext)
 {
     iParent       = aParent;
     iCurrentToken = aCurrentToken;
 }
Beispiel #6
0
 public SymParserWorkerContext(SymParserDocumentContext aDocumentContext, SymParserWorker aParent)
     : this(aDocumentContext, aParent, SymToken.NullToken())
 {
 }