/// Attempts to find a comma after a number. Returns true on success, or false
/// if the end of the line is reached
Attempts to find a comma after a number. Returns true on success, or false
if the end of the line is reached
Attempts to find a comma after a number . Returns true on success or false if the end of the line is reached
fn find_comma(&mut self) -> Result<bool, String> {
        self.skip_whitespace();
        iter_peek_match!(self.characters, character => {
            Character::Value(',') => {
                // Skip past the comma and any whitespace.
                self.next_character();
                self.skip_whitespace();
                // A comma was found!
                return Ok(true)
            },
            Character::Value(';') => {
                self.continue_to_end_of_line()?;
            },
            value => return Err(format!("Unknown character when expecting a comma or semi-colon \"{:?}\"", value))
        });
        Ok(false)
    }
fn find_comma ( & mut self ) -> Result < bool , String > { self . skip_whitespace ( ) ; iter_peek_match ! ( self characters character { Character Value ( ',' ) { // Skip past the comma and any whitespace. self next_character ( ) self skip_whitespace ( ) // A comma was found! return Ok ( true ) } Character Value ( ';' ) { self continue_to_end_of_line ( ) } value return Err ( format ( " \" \" " value ) ) } ) ; Ok ( false ) }
Attempts to find a comma after a number.
Attempts to find a comma after a number .
&mut self