pub struct Compiler {
    pub debug: u8,
    pub interactive: bool,
    /* private fields */
}
Expand description

Tokay compiler instance

A tokay compiler initializes a Tokay parser for later re-use when called multiple times.

The compiler can be set into an interactive mode so that statics, variables and constants once built won’t be removed and can be accessed later on. This is useful in REPL mode.

Fields

debug: u8interactive: bool

Implementations

Compile a Tokay program from source into a Program struct.

In case None is returend, causing errors where already reported to stdout.

Shortcut to compile a Tokay program from a &str.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.