Example #1
0
        /// <summary>
        /// Skips a single separator
        /// </summary>
        private void ScanSeparator()
        {
            switch (source.Current)
            {
            case '!': source.SkipRestOfLine(); break;

            default: source.MoveNext(); break;
            }
        }
 /// <summary>
 /// Skips a single separator
 /// </summary>
 private void ScanSeparator()
 {
     if (source.Current == '!')
     {
         source.SkipRestOfLine();
     }
     else
     {
         source.MoveNext();
     }
 }
Example #3
0
 /// <summary>
 /// Appends the current character to the current token, and gets
 /// the next character from the source program.
 /// </summary>
 void TakeIt()
 {
     _currentSpelling.Append((char)_source.Current);
     _source.MoveNext();
 }