[−][src]Struct nodespeak::vague::structure::Program
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]
&mut self,
scope: ScopeId,
symbol: &str,
definition: Variable
) -> VariableId
pub fn adopt_and_define_intermediate(
&mut self,
scope: ScopeId,
definition: Variable
) -> VariableId
[src]
&mut self,
scope: ScopeId,
definition: Variable
) -> VariableId
pub fn make_intermediate_auto_var(
&mut self,
scope: ScopeId,
position: FilePosition
) -> VariableId
[src]
&mut self,
scope: ScopeId,
position: FilePosition
) -> VariableId
Trait Implementations
impl Debug for Program
[src]
impl Index<ScopeId> for Program
[src]
type Output = Scope
The returned type after indexing.
fn index(&self, scope: ScopeId) -> &Self::Output
[src]
impl Index<VariableId> for Program
[src]
type Output = Variable
The returned type after indexing.
fn index(&self, variable: VariableId) -> &Self::Output
[src]
impl IndexMut<ScopeId> for Program
[src]
impl IndexMut<VariableId> for Program
[src]
fn index_mut(&mut self, variable: VariableId) -> &mut Self::Output
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,