[][src]Struct nodespeak::vague::structure::Program

pub struct Program { /* fields omitted */ }

Represents an entire program written in the Nodespeak language.

Implementations

impl Program[src]

pub fn new() -> Program[src]

pub fn create_scope(&mut self) -> ScopeId[src]

pub fn create_child_scope(&mut self, parent: ScopeId) -> ScopeId[src]

pub fn borrow_all_scopes(&self) -> &Vec<Scope>[src]

pub fn lookup_symbol(&self, scope: ScopeId, symbol: &str) -> Option<VariableId>[src]

pub fn adopt_variable(&mut self, variable: Variable) -> VariableId[src]

pub fn get_entry_point(&self) -> ScopeId[src]

pub fn set_entry_point(&mut self, new_entry_point: ScopeId)[src]

pub fn get_builtins_scope(&self) -> ScopeId[src]

pub fn adopt_and_define_symbol(
    &mut self,
    scope: ScopeId,
    symbol: &str,
    definition: Variable
) -> VariableId
[src]

pub fn adopt_and_define_intermediate(
    &mut self,
    scope: ScopeId,
    definition: Variable
) -> VariableId
[src]

pub fn make_intermediate_auto_var(
    &mut self,
    scope: ScopeId,
    position: FilePosition
) -> VariableId
[src]

Trait Implementations

impl Debug for Program[src]

impl Index<ScopeId> for Program[src]

type Output = Scope

The returned type after indexing.

impl Index<VariableId> for Program[src]

type Output = Variable

The returned type after indexing.

impl IndexMut<ScopeId> for Program[src]

impl IndexMut<VariableId> for Program[src]

Auto Trait Implementations

impl RefUnwindSafe for Program

impl Send for Program

impl Sync for Program

impl Unpin for Program

impl UnwindSafe for Program

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.