fn loop_digits(&mut self, exponent: bool) {
        let mut invalid_point = exponent;
        while let Some(c) = self.current_char {
            if c == '.' && invalid_point {
                panic!("Unexpected floating point in number")
            } else if c == '.' && !invalid_point {
                invalid_point = true;
                self.advance();
            } else if c.is_digit(10)  {
                self.advance();
            } else {
                break
            }
        }
    }
// A function to loop over digits
A function to loop over digits
A function to loop over digits
fn loop_digits(&mut self, exponent: bool) {
        let mut invalid_point = exponent;
        while let Some(c) = self.current_char {
            if c == '.' && invalid_point {
                panic!("Unexpected floating point in number")
            } else if c == '.' && !invalid_point {
                invalid_point = true;
                self.advance();
            } else if c.is_digit(10)  {
                self.advance();
            } else {
                break
            }
        }
    }
fn loop_digits ( & mut self , exponent : bool ) { let mut invalid_point = exponent ; while let Some ( c ) = self . current_char { if c == '.' && invalid_point { panic ! ( " " ) } else if c == '.' && ! invalid_point { invalid_point = true ; self . advance ( ) ; } else if c . is_digit ( 10 ) { self . advance ( ) ; } else { break } } }
A function to loop over digits
A function to loop over digits
&mut self
exponent
bool
&mut self
exponent
bool