Exemple #1
0
 public void SkipAndAdd(int amount)
 {
     for (var startPosition = Position; Position < startPosition + amount; Position++)
     {
         TokenList.AddCharacter(Source[Position]);
     }
 }
Exemple #2
0
        public string Evaluate()
        {
            while (Position < Source.Length)
            {
                CollectionView.Position = Position;
                if (TrySkipEscapeSymbol())
                {
                    continue;
                }
                if (TryCloseTag())
                {
                    continue;
                }
                if (TryOpenTag())
                {
                    continue;
                }

                TokenList.AddCharacter(CollectionView.GetValue(0));

                Position++;
            }
            return(TokenList.GetValue());
        }