예제 #1
0
 private void Next()
 {
     token = reader.Read();
     while (token != null && token.Type == LexemType.Comment)
     {
         token = reader.Read();
     }
 }
예제 #2
0
        private void ReadFrom(PListReader reader)
        {
            PListObject parent = this;

            do
            {
                switch (reader.TokenType)
                {
                case (PListToken.None): break;

                case (PListToken.StartDict):
                {
                    PListDict dict = new PListDict();
                    dict.Parent = parent;
                    parent      = dict;
                    break;
                }

                case (PListToken.EndDict):
                {
                    if (parent == this)
                    {
                        return;
                    }
                    parent = parent.Parent;
                    break;
                }
                }
            } while (reader.Read());
        }