Class: PyruCompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/pyru_compiler.rb

Overview

pyru_compiler.rb

Instance Method Summary collapse

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

#compileObject



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