pub struct Lexer { /* private fields */ }
Implementations§
Source§impl<'a> Lexer
impl<'a> Lexer
pub fn new() -> Self
pub fn set_config(&mut self, config: LexerConfig)
pub fn run(&mut self, input: &'a str) -> Result<&Vec<Token>, LexError>
pub fn tokens(&self) -> &Vec<Token>
pub fn str_to_int(s: &str) -> Option<IntType>
pub fn str_to_float(s: &str) -> Option<FloatType>
pub fn str_to_hex_float(bytes: &[u8]) -> Option<FloatType>
pub fn set_debug(&mut self, debug: bool)
pub fn is_debug(&self) -> bool
Auto Trait Implementations§
impl Freeze for Lexer
impl RefUnwindSafe for Lexer
impl Send for Lexer
impl Sync for Lexer
impl Unpin for Lexer
impl UnwindSafe for Lexer
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