pub fn parse_keywords(&mut self, keywords: Vec<&'static str>) -> bool {
        let index = self.index;
        for keyword in keywords {
            if !self.parse_keyword(&keyword) {
                //println!("parse_keywords aborting .. did not find {}", keyword);
                // reset index and return immediately
                self.index = index;
                return false;
            }
        }
        true
    }
/// Look for an expected sequence of keywords and consume them if they exist
Look for an expected sequence of keywords and consume them if they exist
Look for an expected sequence of keywords and consume them if they exist
pub fn parse_keywords(&mut self, keywords: Vec<&'static str>) -> bool {
        let index = self.index;
        for keyword in keywords {
            if !self.parse_keyword(&keyword) {
                //println!("parse_keywords aborting .. did not find {}", keyword);
                // reset index and return immediately
                self.index = index;
                return false;
            }
        }
        true
    }
pub fn parse_keywords ( & mut self , keywords : Vec < & ' static str > ) -> bool { let index = self . index ; for keyword in keywords { if ! self . parse_keyword ( & keyword ) { //println!("parse_keywords aborting .. did not find {}", keyword); // reset index and return immediately self . index = index ; return false ; } } true }
Look for an expected sequence of keywords and consume them if they exist
Look for an expected sequence of keywords and consume them if they exist
&mut self
keywords
Vec<&'static str>
&mut self
keywords
Vec<&'static str>