Create a new parser builder for the specified tokens using the [`GenericDialect`].
(input: impl Into<ParserInput<'a>>)
| 397 | /// Create a new parser builder for the specified tokens using the |
| 398 | /// [`GenericDialect`]. |
| 399 | pub fn new(input: impl Into<ParserInput<'a>>) -> Self { |
| 400 | Self { |
| 401 | input: input.into(), |
| 402 | dialect: &DEFAULT_DIALECT, |
| 403 | recursion_limit: DEFAULT_RECURSION_LIMIT, |
| 404 | } |
| 405 | } |
| 406 | |
| 407 | /// Adjust the parser builder's dialect. Defaults to [`GenericDialect`] |
| 408 | pub fn with_dialect(mut self, dialect: &'b dyn Dialect) -> Self { |