fn accept_ureal_r(&mut self, l: &mut Lexer, tentative: bool) -> Result<u8, &'static str> {
        let pos = l.pos;
        let int_result_1 = self.accept_integer_r(l, tentative);
        if int_result_1.is_err() {
            return int_result_1;
        }
        if l.accept("/") {
            if (l.pos - pos) == 1 {
                // there has to be something before the /
                return Err("malformed rational");
            }
            self.is_rational = true;
            let int_result_2 = self.accept_integer_r(l, false);
            if int_result_2.is_err() {
                return int_result_2;
            }
        } else if self.digits.len() == 10 && l.accept(".") {
            self.is_float = true;
            if self.is_exact {
                l.accept_run(&self.digits[..]);
            } else {
                l.accept_run("#");
            }
        }
        if l.accept("dDeEfFlLsS") {
            self.is_float = true;
            l.accept("+-");
            l.accept_run(&self.digits[..]);
        }
        Ok(0)
    }
/// `accept_ureal_r` attempts to read an unsigned real number, possibly inexact.
`accept_ureal_r` attempts to read an unsigned real number, possibly inexact.
` accept_ureal_r ` attempts to read an unsigned real number possibly inexact .
fn accept_ureal_r(&mut self, l: &mut Lexer, tentative: bool) -> Result<u8, &'static str> {
        let pos = l.pos;
        let int_result_1 = self.accept_integer_r(l, tentative);
        if int_result_1.is_err() {
            return int_result_1;
        }
        if l.accept("/") {
            if (l.pos - pos) == 1 {
                // there has to be something before the /
                return Err("malformed rational");
            }
            self.is_rational = true;
            let int_result_2 = self.accept_integer_r(l, false);
            if int_result_2.is_err() {
                return int_result_2;
            }
        } else if self.digits.len() == 10 && l.accept(".") {
            self.is_float = true;
            if self.is_exact {
                l.accept_run(&self.digits[..]);
            } else {
                l.accept_run("#");
            }
        }
        if l.accept("dDeEfFlLsS") {
            self.is_float = true;
            l.accept("+-");
            l.accept_run(&self.digits[..]);
        }
        Ok(0)
    }
fn accept_ureal_r ( & mut self , l : & mut Lexer , tentative : bool ) -> Result < u8 , & ' static str > { let pos = l . pos ; let int_result_1 = self . accept_integer_r ( l , tentative ) ; if int_result_1 . is_err ( ) { return int_result_1 ; } if l . accept ( " " ) { if ( l . pos - pos ) == 1 { // there has to be something before the / return Err ( " " ) ; } self . is_rational = true ; let int_result_2 = self . accept_integer_r ( l , false ) ; if int_result_2 . is_err ( ) { return int_result_2 ; } } else if self . digits . len ( ) == 10 && l . accept ( " " ) { self . is_float = true ; if self . is_exact { l . accept_run ( & self . digits [ .. ] ) ; } else { l . accept_run ( " " ) ; } } if l . accept ( " " ) { self . is_float = true ; l . accept ( " " ) ; l . accept_run ( & self . digits [ .. ] ) ; } Ok ( 0 ) }
`accept_ureal_r` attempts to read an unsigned real number, possibly inexact.
` accept_ureal_r ` attempts to read an unsigned real number possibly inexact .
&mut self
l
&mut Lexer
tentative
bool