/// <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(); } }
/// <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(); }