[][src]Struct nodespeak::Compiler

pub struct Compiler { /* fields omitted */ }

Implementations

impl Compiler[src]

pub fn new() -> Self[src]

pub fn set_error_width(&mut self, width: usize)[src]

pub fn add_source(&mut self, name: String, content: String)[src]

pub fn add_source_from_file(&mut self, file_path: String) -> Result<()>[src]

pub fn borrow_performance_counters(&self) -> &PerformanceCounters[src]

pub fn compile_to_ast_impl<'a>(
    pc: &mut PerformanceCounters,
    source: &'a str,
    file_id: usize
) -> Result<Program<'a>, CompileProblem>
[src]

pub fn compile_to_ast<'a>(
    &'a mut self,
    source_name: &str
) -> Result<Program<'a>, String>
[src]

pub fn compile_to_vague(&mut self, source_name: &str) -> Result<Program, String>[src]

pub fn compile_to_resolved(
    &mut self,
    source_name: &str
) -> Result<Program, String>
[src]

pub fn compile_to_trivial(
    &mut self,
    source_name: &str
) -> Result<Program, String>
[src]

pub fn compile_to_llvmir(
    &mut self,
    source_name: &str
) -> Result<Program, String>
[src]

pub fn compile(&mut self, source_name: &str) -> Result<Program, String>[src]

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.