lib/crisp/nodes/symbol_literal.rb
module Crisp
module Nodes
# The symbol node
class SymbolLiteral < Primitive
# return the value for the key in the env the symbol stays for
def resolve(env)
if !env.has_key?(text_value)
raise Crisp::EnvironmentError, "#{text_value} is unbound"
end
env[text_value]
end
end
end
end