Exemplo n.º 1
0
        private string ParseType()
        {
            var type = string.Empty;

            while (text.Cursor < text.Length)
            {
                if (text.CurrentIsWhite || text.Current == '}')
                {
                    type = text.Read();
                    text.SkipWhiteChar();
                    text.JumpReaderCursorToCursor();
                    break;
                }
                text.Move();
            }
            return(type);
        }
        private void ParseText()
        {
            var subText = text.Read();
            var builder = builderStack.Peek();

            if (subText != string.Empty)
            {
                builder.Add(new Data.TextData(subText));
            }
        }