isExponent() 개인적인 메소드

private isExponent ( ) : bool
리턴 bool
예제 #1
0
 private static TokenType?remainingFloat(Scanner s)
 {
     s.readChar(); // Skip the '.'
     while (s.isDigit() || s.isExponent())
     {
         if (s.isExponent())
         {
             return(readExponent(s));
         }
         s.readChar();
     }
     return(TokenType.Double);
 }
예제 #2
0
 private static TokenType?unsignedNumber(Scanner s)
 {
     if (!s.isDigit())
     {
         return(null);
     }
     while (s.isDigit())
     {
         s.readChar();
     }
     if (s.isExponent())
     {
         return(readExponent(s));
     }
     if (s.peek() != '.')
     {
         return(TokenType.Integer);
     }
     return(remainingFloat(s));
 }
예제 #3
0
 private static TokenType? unsignedNumber(Scanner s)
 {
     if (!s.isDigit())
         return null;
     while (s.isDigit())
         s.readChar();
     if (s.isExponent())
         return readExponent(s);
     if (s.peek() != '.')
         return TokenType.Integer;
     return remainingFloat(s);
 }
예제 #4
0
 private static TokenType? remainingFloat(Scanner s)
 {
     s.readChar(); // Skip the '.'
     while (s.isDigit() || s.isExponent())
     {
         if (s.isExponent())
             return readExponent(s);
         s.readChar();
     }
     return TokenType.Double;
 }