Class: StringNode
- Inherits:
-
LiteralNode
- Object
- Struct
- LiteralNode
- StringNode
- Defined in:
- lib/toylang/ast/nodes.rb,
lib/toylang/interpreter/evaluation.rb
Instance Attribute Summary
Attributes inherited from LiteralNode
Instance Method Summary collapse
Instance Method Details
#eval(_context) ⇒ Object
27 28 29 |
# File 'lib/toylang/interpreter/evaluation.rb', line 27 def eval(_context) Runtime['String'].new_with_value(value) end |