Struct moa_parsing::AssemblyLexer
source · pub struct AssemblyLexer<'input> {
pub(crate) lineno: usize,
pub(crate) chars: Peekable<Chars<'input>>,
pub(crate) peeked: Option<String>,
}
Fields§
§lineno: usize
§chars: Peekable<Chars<'input>>
§peeked: Option<String>
Implementations§
source§impl<'input> AssemblyLexer<'input>
impl<'input> AssemblyLexer<'input>
pub fn new(input: &'input str) -> Self
pub fn lineno(&self) -> usize
pub fn get_next_lineno(&mut self) -> usize
pub fn get_next(&mut self) -> Option<String>
pub fn peek(&mut self) -> Option<String>
pub fn expect_next(&mut self) -> Result<String, ParserError>
pub fn expect_token(&mut self, expected: &str) -> Result<(), ParserError>
pub fn expect_end(&mut self) -> Result<(), ParserError>
pub(crate) fn eat_whitespace(&mut self)
pub(crate) fn read_until(&mut self, test: char)
Auto Trait Implementations§
impl<'input> Freeze for AssemblyLexer<'input>
impl<'input> RefUnwindSafe for AssemblyLexer<'input>
impl<'input> Send for AssemblyLexer<'input>
impl<'input> Sync for AssemblyLexer<'input>
impl<'input> Unpin for AssemblyLexer<'input>
impl<'input> UnwindSafe for AssemblyLexer<'input>
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