[][src]Struct ch8alib::lex::PrepLexer

pub struct PrepLexer { /* fields omitted */ }

A preprocessor lexer

Methods

impl PrepLexer[src]

pub fn new(new_text: &str) -> Self[src]

Constructs a new PrepLexer instance

Argument

  • new_text - The text to preprocess

Returns

A new PrepLexer instance with the given text

pub fn get_address(&self) -> u16[src]

Gets the current address being processed

Returns

The current address being processed

pub fn get_line(&self) -> u32[src]

Gets the current line being processed

Returns

The current line number being processed

pub fn get_column(&self) -> u32[src]

Gets the current column being processed

Returns

The current column number being processed

pub fn get_next_token(&mut self) -> Result<Token, LexerError>[src]

Gets the next Token consumed from the input

Returns

The next Token consumed from the input, wrapped in a Result.

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.