pub struct MacroLexer<LB, U>{ /* private fields */ }Expand description
The macro lexer interprets and evaluates assignment statements and expressions.
Implementations§
Source§impl<LB, U> MacroLexer<LB, U>
impl<LB, U> MacroLexer<LB, U>
Sourcepub fn new(base_lexer: LB, user_object: &U) -> Self
pub fn new(base_lexer: LB, user_object: &U) -> Self
Creates a new macro lexer, given an original base lexer. This will interpret all tokens necessary for macro interpretation and expansion, and result into tokens specific for the user of this lexer.
Sourcepub fn symbol_table(&self) -> HashSet<Symbol>
pub fn symbol_table(&self) -> HashSet<Symbol>
Retrieves the symbol table to be used apart from the Macro Lexer
Trait Implementations§
Source§impl<LB, U> LexerBase for MacroLexer<LB, U>
impl<LB, U> LexerBase for MacroLexer<LB, U>
Source§fn next_token(&mut self) -> Token
fn next_token(&mut self) -> Token
Goes forward to the next token in the stream, if available.
Source§fn current_stream(&self) -> Option<String>
fn current_stream(&self) -> Option<String>
Returns the current stream’s name, if any (for example, the normal
lexer does know this value)
Auto Trait Implementations§
impl<LB, U> Freeze for MacroLexer<LB, U>
impl<LB, U> RefUnwindSafe for MacroLexer<LB, U>where
LB: RefUnwindSafe,
U: RefUnwindSafe,
impl<LB, U> Send for MacroLexer<LB, U>
impl<LB, U> Sync for MacroLexer<LB, U>
impl<LB, U> Unpin for MacroLexer<LB, U>
impl<LB, U> UnwindSafe for MacroLexer<LB, U>where
LB: UnwindSafe,
U: UnwindSafe,
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