Create a new parser builder with a default configuration.
()
| 133 | impl ParserBuilder { |
| 134 | /// Create a new parser builder with a default configuration. |
| 135 | pub fn new() -> ParserBuilder { |
| 136 | ParserBuilder { |
| 137 | ignore_whitespace: false, |
| 138 | nest_limit: 250, |
| 139 | octal: false, |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /// Build a parser from this configuration with the given pattern. |
| 144 | pub fn build(&self) -> Parser { |