pub struct Lexer { /* private fields */ }Expand description
Lexer for tokenizing OxiLean source code.
Supports:
- Keywords and identifiers (including Unicode letters: Greek, math symbols)
- Number literals: decimal, hex (
0x), binary (0b), octal (0o) - Float literals:
3.14,1.0e10,1.5e-3 - String literals with enhanced escape sequences (
\u{1234},\x41,\0) - Char literals:
'a','\n','\x41' - Interpolated strings:
s!"hello {name}" - Doc comments:
/-- ... -/(block) and--- ...(line) - Operators:
>=,..,=>,<-,->, etc.
Implementations§
Auto Trait Implementations§
impl Freeze for Lexer
impl RefUnwindSafe for Lexer
impl Send for Lexer
impl Sync for Lexer
impl Unpin for Lexer
impl UnsafeUnpin 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