fn accept_real_r(&mut self, l: &mut Lexer, tentative: bool) -> Result<u8, &'static str> {
        if l.look_ahead("inf.0", true) || l.look_ahead("nan.0", true) {
            self.is_float = true;
            // consume the text
            l.next();
            l.next();
            l.next();
            l.next();
            l.next();
            Ok(0)
        } else {
            l.accept("+-");
            self.accept_ureal_r(l, tentative)
        }
    }
/// `accept_real_r` attempts to read an optionally signed real number.
`accept_real_r` attempts to read an optionally signed real number.
` accept_real_r ` attempts to read an optionally signed real number .
fn accept_real_r(&mut self, l: &mut Lexer, tentative: bool) -> Result<u8, &'static str> {
        if l.look_ahead("inf.0", true) || l.look_ahead("nan.0", true) {
            self.is_float = true;
            // consume the text
            l.next();
            l.next();
            l.next();
            l.next();
            l.next();
            Ok(0)
        } else {
            l.accept("+-");
            self.accept_ureal_r(l, tentative)
        }
    }
fn accept_real_r ( & mut self , l : & mut Lexer , tentative : bool ) -> Result < u8 , & ' static str > { if l . look_ahead ( " " , true ) || l . look_ahead ( " " , true ) { self . is_float = true ; // consume the text l . next ( ) ; l . next ( ) ; l . next ( ) ; l . next ( ) ; l . next ( ) ; Ok ( 0 ) } else { l . accept ( " " ) ; self . accept_ureal_r ( l , tentative ) } }
`accept_real_r` attempts to read an optionally signed real number.
` accept_real_r ` attempts to read an optionally signed real number .
&mut self
l
&mut Lexer
tentative
bool