#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ParserConfig {
pub comments: bool,
}
impl Default for ParserConfig {
fn default() -> Self {
Self { comments: true }
}
}
impl ParserConfig {
pub fn new() -> Self {
Self::default()
}
pub fn without_comments() -> Self {
Self { comments: false }
}
pub fn with_comments(comments: bool) -> Self {
Self { comments }
}
}