[][src]Struct saltwater::Analyzer

pub struct Analyzer<T: Lexer> {
    pub inner: PureAnalyzer,
    pub debug: bool,
    // some fields omitted
}

The driver for PureAnalyzer.

This implements Iterator and ensures that declarations and errors are returned in the correct error. Use this if you want to compile an entire C program, or if it is important to show errors in the correct order relative to declarations.

Fields

inner: PureAnalyzerdebug: bool

Whether to print each declaration as it is seen

Implementations

impl<I: Lexer> Analyzer<I>[src]

pub fn new(parser: Parser<I>, debug: bool) -> Self[src]

Trait Implementations

impl<T: Lexer> Iterator for Analyzer<T>[src]

type Item = CompileResult<Locatable<Declaration>>

The type of the elements being iterated over.

Auto Trait Implementations

impl<T> !RefUnwindSafe for Analyzer<T>

impl<T> !Send for Analyzer<T>

impl<T> !Sync for Analyzer<T>

impl<T> Unpin for Analyzer<T> where
    T: Unpin

impl<T> !UnwindSafe for Analyzer<T>

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,