示例#1
0
        private void ReadBlock(string type, BlockBase block)
        {
            Check(type, "{");

            var parent = this.parent;
            this.parent = block;

            for (; ; )
            {
                var t = Read();
                if (t == null)
                    throw Abort("{0}: {1}: }}}} が必要です。", type, block.Name);
                if (t == "}") break;

                Rewind();
                var s = Sentence();
                if (s != null) block.AddSentences(s);
            }

            this.parent = parent;
        }