[−][src]Struct lexpr::parse::Options
Various options to influence parser behavior.
Methods
impl Options[src][−]
pub fn new() -> Self[src][−]
Construct an empty set of options.
This will recognize no keywords, and parse nil and t as
regular symbols.
pub fn elisp() -> Self[src][−]
Construct a set of options suitable for parsing Emacs Lisp.
pub fn with_keyword_syntax(self, syntax: KeywordSyntax) -> Self[src][−]
Add syntax to the recognized keyword syntaxes.
pub fn with_keyword_syntaxes<I, T>(self, styles: I) -> Self where
I: IntoIterator<Item = T>,
T: Borrow<KeywordSyntax>, [src][−]
I: IntoIterator<Item = T>,
T: Borrow<KeywordSyntax>,
Set the recognized keyword syntaxes.
pub fn with_nil_symbol(self, treatment: NilSymbol) -> Self[src][−]
Choose how to parse the nil symbol.
pub fn with_t_symbol(self, treatment: TSymbol) -> Self[src][−]
Choose how to parse the t symbol.
pub fn with_brackets(self, treatment: Brackets) -> Self[src][−]
Choose how to handle brackets.
pub fn with_string_syntax(self, syntax: StringSyntax) -> Self[src][−]
Choose the accepted string syntax.
pub fn with_char_syntax(self, syntax: CharSyntax) -> Self[src][−]
Choose the accepted character syntax.
pub fn keyword_syntax(self, syntax: KeywordSyntax) -> bool[src][−]
Check wether a keyword syntax is enabled.
pub fn nil_symbol(self) -> NilSymbol[src][−]
Query the way the nil symbol is handled.
pub fn t_symbol(self) -> TSymbol[src][−]
Query the way the t symbol is handled.
pub fn brackets(self) -> Brackets[src][−]
Query the way brackets are handled.
pub fn string_syntax(self) -> StringSyntax[src][−]
Query the accepted string syntax.
pub fn char_syntax(self) -> CharSyntax[src][−]
Query the accepted character syntax.
Trait Implementations
impl Clone for Options[src][+]
impl Copy for Options[src]
impl Debug for Options[src][+]
impl Default for Options[src][+]
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> From<T> for T[src][+]
impl<T, U> Into<U> for T where
U: From<T>, [src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src][+]
U: TryFrom<T>,