Class: EleetScript::IntegerNode
- Inherits:
-
LiteralNode
- Object
- LiteralNode
- EleetScript::IntegerNode
- Defined in:
- lib/lang/nodes.rb,
lib/lang/interpreter.rb
Instance Method Summary collapse
Methods inherited from LiteralNode
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 |