Class: PyruCompiler
- Inherits:
-
Object
- Object
- PyruCompiler
- Defined in:
- lib/pyru_compiler.rb
Overview
pyru_compiler.rb
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(ast) ⇒ PyruCompiler
constructor
A new instance of PyruCompiler.
Constructor Details
#initialize(ast) ⇒ PyruCompiler
Returns a new instance of PyruCompiler.
4 5 6 |
# File 'lib/pyru_compiler.rb', line 4 def initialize(ast) @ast = ast end |
Instance Method Details
#compile ⇒ Object
8 9 10 11 12 13 |
# File 'lib/pyru_compiler.rb', line 8 def compile # Placeholder for compilation logic # You can translate the AST into executable code # For simplicity, let's just return the AST as is for now @ast end |