Class: EleetScript::SymbolNode

Inherits:
LiteralNode show all
Defined in:
lib/lang/nodes.rb,
lib/lang/interpreter.rb

Instance Method Summary collapse

Methods inherited from LiteralNode

#to_s

Instance Method Details

#eval(context) ⇒ Object



132
133
134
# File 'lib/lang/interpreter.rb', line 132

def eval(context)
  context.root_ns["Symbol"].new_with_value(value, context.namespace_context)
end