Struct moa_parsing::AssemblyParser
source · pub struct AssemblyParser<'input> {
pub(crate) lexer: AssemblyLexer<'input>,
}
Fields§
§lexer: AssemblyLexer<'input>
Implementations§
source§impl<'input> AssemblyParser<'input>
impl<'input> AssemblyParser<'input>
pub fn new(input: &'input str) -> Self
pub fn parse(&mut self) -> Result<Vec<(usize, AssemblyLine)>, ParserError>
pub(crate) fn parse_line(&mut self) -> Result<Option<AssemblyLine>, ParserError>
pub(crate) fn parse_list_of_words(&mut self) -> Result<Vec<String>, ParserError>
pub(crate) fn parse_list_of_operands( &mut self ) -> Result<Vec<AssemblyOperand>, ParserError>
pub(crate) fn parse_operand(&mut self) -> Result<AssemblyOperand, ParserError>
Auto Trait Implementations§
impl<'input> Freeze for AssemblyParser<'input>
impl<'input> RefUnwindSafe for AssemblyParser<'input>
impl<'input> Send for AssemblyParser<'input>
impl<'input> Sync for AssemblyParser<'input>
impl<'input> Unpin for AssemblyParser<'input>
impl<'input> UnwindSafe for AssemblyParser<'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