use alloc :: { vec, vec ::Vec };
#[ derive( Clone, PartialEq, Eq ) ]
#[ derive( Debug ) ]
pub struct UnilangParserOptions
{
pub main_delimiters: Vec< &'static str >,
pub operators: Vec< &'static str >,
pub whitespace_is_separator: bool,
pub error_on_positional_after_named: bool,
pub error_on_duplicate_named_arguments: bool,
pub quote_pairs: Vec< ( char, char ) >,
pub verbosity: u8,
}
impl Default for UnilangParserOptions
{
fn default() -> Self
{
Self
{
main_delimiters: vec![ " ", "." ],
operators: vec![ "::", " :: ", "?", "!" ],
whitespace_is_separator: true,
error_on_positional_after_named: false,
error_on_duplicate_named_arguments: false,
quote_pairs: vec![ ( '"', '"' ), ( '\'', '\'' ) ],
verbosity: 1, }
}
}