MyC.Io.EOF C# (CSharp) Method

EOF() public method

public EOF ( ) : bool
return bool
public bool EOF()
  {
  return _eof;
  }

Usage Example

Example #1
0
File: tok.cs Project: ydunk/masters
/* get an identifier */
        public void scan()
        {
            skipWhite();
            if (Char.IsLetter(io.getNextChar()))
            {
                LoadName();
            }
            else if (Char.IsDigit(io.getNextChar()))
            {
                LoadNum();
            }
            else if (isOp(io.getNextChar()))
            {
                LoadOp();
            }
            else if (io.EOF())
            {
                value    = null;
                token_id = T_EOF;
            }
            else
            {
                value = new StringBuilder(MyC.MAXSTR);
                value.Append(io.getNextChar());
                token_id = T_UNKNOWN;
                io.ReadChar();
            }
            skipWhite();
#if DEBUG
            Console.WriteLine("[tok.scan tok=[" + this + "]");
#endif
        }
All Usage Examples Of MyC.Io::EOF