diff --git a/src/mode/parser.rs b/src/mode/parser.rs index 5c6f692..af59e70 100644 --- a/src/mode/parser.rs +++ b/src/mode/parser.rs @@ -237,6 +237,13 @@ impl Parser { self.reset(); Ok(self.mode) } + + pub fn parse_all(&mut self, value: &str) -> Result { + for seg in value.split(',') { + self.parse(seg); + } + Ok(self.mode()) + } } #[cfg(test)]