class Interpreter::Environment

Defined in:

interpreter/environment.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(enclosing : Nil | ::Interpreter::Environment) #

[View source]
def self.new #

[View source]

Instance Method Detail

def define(key : Token::Token, value : Ast::Value) #

[View source]
def enclosing : Environment | Nil #

Parent environment


[View source]
def enclosing=(enclosing : Environment | Nil) #

Parent environment


[View source]
def get(key : Token::Token) #

[View source]
def redefine(key : Token::Token, value : Ast::Value) #

[View source]
def values : Hash(String, Bool | Float32 | String | Nil) #

[View source]
def values=(values : Hash(String, Bool | Float32 | String | Nil)) #

[View source]