Class: FalseNode

Inherits:
LiteralNode show all
Defined in:
lib/toylang/ast/nodes.rb,
lib/toylang/interpreter/evaluation.rb

Instance Attribute Summary

Attributes inherited from LiteralNode

#value

Instance Method Summary collapse

Constructor Details

#initializeFalseNode

Returns a new instance of FalseNode.



22
23
24
# File 'lib/toylang/ast/nodes.rb', line 22

def initialize
  super(false)
end

Instance Method Details

#eval(_context) ⇒ Object



39
40
41
# File 'lib/toylang/interpreter/evaluation.rb', line 39

def eval(_context)
  Runtime['false']
end