Class: EleetScript::IntegerNode

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



147
148
149
# File 'lib/lang/interpreter.rb', line 147

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