예제 #1
0
 private TokenId ParseNull(CharacterReader reader)
 {
     if (reader.Peek() != 'u')
     {
         throw new InvalidOperationException();
     }
     reader.Read();
     if (reader.Peek() != 'l')
     {
         throw new InvalidOperationException();
     }
     reader.Read();
     if (reader.Peek() != 'l')
     {
         throw new InvalidOperationException();
     }
     reader.Read();
     return(TokenId.Null);
 }
예제 #2
0
 public TokenReader(CharacterReader reader)
 {
     _reader = reader;
     Next();
 }