Class: Strling::Core::IROp
- Inherits:
-
Object
- Object
- Strling::Core::IROp
- Defined in:
- lib/strling/core/ir.rb
Overview
Base class for all IR operations.
All IR nodes extend this base class and must implement the to_dict() method for serialization to a hash representation.
Direct Known Subclasses
IRAlt, IRAnchor, IRBackref, IRCharClass, IRDot, IRGroup, IRLit, IRLook, IRQuant, IRSeq
Instance Method Summary collapse
-
#to_dict ⇒ Hash
Serialize the IR node to a hash representation.
Instance Method Details
#to_dict ⇒ Hash
Serialize the IR node to a hash representation.
30 31 32 |
# File 'lib/strling/core/ir.rb', line 30 def to_dict raise NotImplementedError, 'Subclasses must implement to_dict' end |