pub fn parse_literal_double(&mut self) -> Result<f64, ParserError> {
        match self.next_token() {
            Some(Token::Number(s)) => s.parse::<f64>().map_err(|e| {
                ParserError::ParserError(format!("Could not parse '{}' as i64: {}", s, e))
            }),
            other => parser_err!(format!("Expected literal int, found {:?}", other)),
        }
    }
/// Parse a literal integer/long
Parse a literal integer/long
Parse a literal integer / long
pub fn parse_literal_double(&mut self) -> Result<f64, ParserError> {
        match self.next_token() {
            Some(Token::Number(s)) => s.parse::<f64>().map_err(|e| {
                ParserError::ParserError(format!("Could not parse '{}' as i64: {}", s, e))
            }),
            other => parser_err!(format!("Expected literal int, found {:?}", other)),
        }
    }
pub fn parse_literal_double ( & mut self ) -> Result < f64 , ParserError > { match self . next_token ( ) { Some ( Token :: Number ( s ) ) => s . parse :: < f64 > ( ) . map_err ( | e | { ParserError :: ParserError ( format ! ( " " s e ) ) } ) , other => parser_err ! ( format ( " " other ) ) , } }
Parse a literal integer/long
Parse a literal integer / long
&mut self
&mut self