Struct kasm::Parser[][src]

pub struct Parser {}

Implementations

impl Parser[src]

pub fn parse(
    tokens: Vec<Token>,
    label_manager: &mut LabelManager
) -> ParseResult<Vec<Function>>
[src]

This function parses the token vector with the help of the label manager This performs the first pass of a two-pass assembler: Collecting the functions into separate lists of instructions, while gathering labels This also then replaces those labels, and outputs functions in a form suitable for creating an object file from

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.