Enum LexerSpec
pub enum LexerSpec {
Auto,
Basic,
Contextual,
Dynamic,
DynamicComplete,
Custom,
}Expand description
The user-facing lexer choice: Lark’s lexer= strings, plus Custom for a
caller-supplied lexer. Like Lark, a custom lexer is exempt from the
parser×lexer matrix entirely — every parser accepts one.
Variants§
Auto
Basic
Contextual
Dynamic
DynamicComplete
Custom
A caller-supplied crate::custom::TokenSource will drive the parse
(the instance builds no contextual/dynamic machinery and retains its
crate::LexerConf for the source to build from — Lark instantiates
the class with lexer_conf).
Trait Implementations§
impl Copy for LexerSpec
impl Eq for LexerSpec
impl StructuralPartialEq for LexerSpec
Auto Trait Implementations§
impl Freeze for LexerSpec
impl RefUnwindSafe for LexerSpec
impl Send for LexerSpec
impl Sync for LexerSpec
impl Unpin for LexerSpec
impl UnsafeUnpin for LexerSpec
impl UnwindSafe for LexerSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more