示例#1
0
        /// <summary>
        /// Parse a sequence of zero or more code fragments.
        /// </summary>
        /// <param name="fragment">CodeFragment object to which fragment text
        /// should be appended.</param>
        private void ParseFragments(CodeFragment fragment)
        {
            while (CrntCode == Token.Type.CodeFragment)
            {
                if (fragment.RawText.Length != 0)
                {
                    fragment.Append("\n");
                }

                fragment.Append(lexer.Crnt.String);
                Next();
            }
        }